CVE-2026-87902
WordPress core unauthenticated local file inclusion - get_page_template() resolves a page template outside the active theme and includes a chosen readable local .php file
- Severity
- critical
- Affected product
- WordPress
- Technology guide
- WordPress security testing
- Affected versions
- WordPress ≥ 7.1, < 7.1.2
- Affected versions
- WordPress ≥ 7.0, < 7.0.6
- Affected versions
- WordPress ≥ 6.9, < 6.9.9
- Affected versions
- WordPress ≥ 6.8, < 6.8.10
- Affected versions
- WordPress ≥ 6.7, < 6.7.9
- Affected versions
- WordPress ≥ 6.6, < 6.6.9
- Affected versions
- WordPress ≥ 6.5, < 6.5.12
- Affected versions
- WordPress ≥ 6.4, < 6.4.12
- Affected versions
- WordPress ≥ 6.3, < 6.3.12
- Affected versions
- WordPress ≥ 6.2, < 6.2.13
- Affected versions
- WordPress ≥ 6.1, < 6.1.14
- Affected versions
- WordPress ≥ 6.0, < 6.0.16
- Affected versions
- WordPress ≥ 5.9, < 5.9.18
- Affected versions
- WordPress ≥ 5.8, < 5.8.17
- Affected versions
- WordPress ≥ 5.7, < 5.7.19
- Affected versions
- WordPress ≥ 5.6, < 5.6.21
- Affected versions
- WordPress ≥ 5.5, < 5.5.22
- Affected versions
- WordPress ≥ 5.4, < 5.4.23
- Affected versions
- WordPress ≥ 5.3, < 5.3.25
- Affected versions
- WordPress ≥ 5.2, < 5.2.28
- Affected versions
- WordPress ≥ 5.1, < 5.1.26
- Affected versions
- WordPress ≥ 5.0, < 5.0.29
- Affected versions
- WordPress ≥ 4.9, < 4.9.33
- Affected versions
- WordPress ≥ 4.8, < 4.8.32
- Affected versions
- WordPress ≥ 4.7, < 4.7.37
- Fixed in
- WordPress 7.1.2
- Fixed in
- WordPress 7.0.6
- Fixed in
- WordPress 6.9.9
- Fixed in
- WordPress 6.8.10
- Fixed in
- WordPress 6.7.9
- Fixed in
- WordPress 6.6.9
- Fixed in
- WordPress 6.5.12
- Fixed in
- WordPress 6.4.12
- Fixed in
- WordPress 6.3.12
- Fixed in
- WordPress 6.2.13
- Fixed in
- WordPress 6.1.14
- Fixed in
- WordPress 6.0.16
- Fixed in
- WordPress 5.9.18
- Fixed in
- WordPress 5.8.17
- Fixed in
- WordPress 5.7.19
- Fixed in
- WordPress 5.6.21
- Fixed in
- WordPress 5.5.22
- Fixed in
- WordPress 5.4.23
- Fixed in
- WordPress 5.3.25
- Fixed in
- WordPress 5.2.28
- Fixed in
- WordPress 5.1.26
- Fixed in
- WordPress 5.0.29
- Fixed in
- WordPress 4.9.33
- Fixed in
- WordPress 4.8.32
- Fixed in
- WordPress 4.7.37
- Detection basis
- Component version range
- Shipped rule
- WordPress: WordPress core unauthenticated local file inclusion - get_page_template() resolves a page template outside the active theme and includes a chosen readable local .php file
- Added to NewScan
- 2026-09-26
- Detected by
- NewScan — free, self-hosted
How NewScan reports it
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
COMPONENT VERSION RANGE
NewScan fingerprints WordPress from its response and reports this CVE when the detected version falls inside the affected range below.
References
Scan for this yourself — local, in-band scanning is free.
Get NewScan (FREE) →Review the measured benchmark, then use the verified remediation process.