WordPress Core <= 7.1 - Authenticated (Contributor+) Path Traversal via REST Templates Controller

4.3
Improper Limitation of a Pathname to a Restricted Directory
CVSS 4.3 (Medium)
Publicly Published September 17, 2026
Last Updated September 17, 2026
Researcher Anthropic

Description

WordPress Core is vulnerable to Path Traversal via the _get_block_template_file() function used by the REST templates controller (/wp/v2/templates/<id>?source=theme) in various versions up to, and including, 7.1 due to the template slug being resolved into a file path without directory containment. Because the route regex forbids '.' but the sanitize callback urldecodes twice, a double-encoded traversal reaches file resolution. This makes it possible for authenticated attackers with Contributor-level access and above to read arbitrary .html files outside the theme template directory.

References

Share

Vulnerability Details for WordPress

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 6.6.8, 6.7.8, 6.8.9, 6.9.8, 7.0.5, 7.1.1
Affected Versions
  • 7.1
  • 5.8 - 6.6.7
  • 6.7 - 6.7.7
  • 6.8 - 6.8.8
Expand to see 2 more affected version ranges.
  • 6.9 - 6.9.7
  • 7.0 - 7.0.4
Patched Versions
  • 6.6.8
  • 6.7.8
  • 6.8.9
  • 6.9.8
Expand to see 2 more patched versions.
  • 7.0.5
  • 7.1.1

Recent vulnerabilities in WordPress

# Title CVE ID CVSS Researchers Date
1 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Unsafe Interactivity API Binding Properties 6.4 Alex Concha, Jon Surrell, rekter0, Marcel Karlsson October 29, 2026
2 WordPress Core 4.7.0 - 7.1.3 - Authenticated (Custom+) Stored Cross-Site Scripting via Externally-Supplied User Login Values 4.9 Anthropic October 29, 2026
3 WordPress Core 6.4.0 - 7.1.3 - Authenticated (Contributor+) Stored Denial of Service via Malformed Interactivity API Bindings 3.5 Jon Surrell October 29, 2026
4 WordPress Core 5.0.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Customizer Selective Refresh 6.4 Rafie Muhammad October 29, 2026
5 WordPress Core 6.4.0 - 7.1.3 - Authenticated (Author+) Stored Cross-Site Scripting via Interactivity Router Uploaded Text Files 6.4 Anas cherni October 29, 2026
6 WordPress Core 5.0.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Non-HTML Whitespace in Block Delimiters 6.4 Rafie Muhammad October 29, 2026
7 WordPress Core 4.9.0 - 7.1.3 - Unauthenticated Sensitive Information Exposure via Customizer Changesets 5.3 Antonio Lorensius Silaban October 29, 2026
8 WordPress Core 5.9.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Navigation Block Labels 6.4 Alex Concha October 29, 2026
9 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Clickjacking via Interactivity API Object Bindings 3.5 rekter0 October 29, 2026
10 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Interactivity API URL Bindings 6.4 Luis Herranz October 29, 2026

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation