Need card #223 · Relevance High · Status New

Unauthenticated Path Traversal Vulnerability in WordPress

Updated 9/27/2026, 22:07:48

Problem

WordPress contains an unauthenticated path traversal vulnerability that allows attackers to achieve conditional remote code execution via user‑controlled template paths. The issue stems from locate_template() not adequately validating paths, enabling exploitation by ordinary users. Furthermore, WordPress lacks a robust file‑path abstraction, causing such vulnerabilities to recur frequently.

Pain points

Questions to verify

Evidence

quote
Note that locate_template() does not prevent directory traversal attacks, so if you’re passing a user-provided template name to the function, be sure to verify that it’s from one of the three appropriate locations (active theme directory, parent theme directory, or /wp-includes/theme-compat/ directory).
fact
WordPress 7.1.2 has been released containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7

Disclaimer: this card is distilled by AI from community discussions as “pain point evidence”. It is a starting point for need analysis and validation, not a “validated market need”. AI has analytical limits; please open the original discussion above to manually verify before key decisions.