Skip to content

Authenticated Path Traversal in WP REST Templates Controller

Moderate
aaronjorbin published GHSA-w57f-v787-qhpf Sep 18, 2026

Software

WordPress

Affected versions

7.1.0 - 7.1
7.0.0 - 7.0.4
6.9.0 - 6.9.7
6.8.0 - 6.8.8
6.7.0 - 6.7.7
6.6.0 - 6.6.7
6.5.0 - 6.5.10
6.4.0 - 6.4.10
6.3.0 - 6.3.10
6.2.0 - 6.2.11
6.1.0 - 6.1.12
6.0.0 - 6.0.14
5.9.0 - 5.9.16

Patched versions

7.1.1
7.0.5
6.9.8
6.8.9
6.7.8
6.6.8
6.5.11
6.4.11
6.3.11
6.2.12
6.1.13
6.0.15
5.9.17

Description

The REST templates endpoint accepts template IDs whose slug regex can result in an unbound filesystem path. An authenticated Author can read any .html file on the server.

WordPress 7.1.1 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 5.9.

Discovered and responsibly disclosed by Anthropic.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CVE ID

No known CVE

Weaknesses

No CWEs