CVE-2026-87902highunder attackCWE-98

CVE-2026-87902: high-severity vulnerability in WordPress

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA, has an official Brazilian government alert and has a working public exploit.

ssvc Actcvss 8.1epss 96%
from disclosure to weaponsame day
Published on NVDSep 22
1st PoCSep 22
CISA KEV+3d
Official alert in Brazil

Brazil's federal government published an alert, recommendation or bulletin that cites this vulnerability.

Source: CTIR Gov (GSI) and CISC Gov.br, under the CC BY-ND 3.0 license.
What the vendors declare (VEX)

Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.

Not affected
1 product — because the vulnerable code is not present in the product
red_hat_products
Action required by CISAfederal deadline: 2026-09-28

Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

In short

A vulnerability allows attackers to trick the system into loading any PHP file from the server, potentially executing malicious code. This happens because the page template function doesn't properly validate file paths.

Technical detail

CWE-98 (Dynamic Code Evaluation) enables unauthenticated path traversal via `get_page_template()`, allowing inclusion of arbitrary .php files outside theme directories. Exploitation requires specific server and theme configuration preconditions; successful exploitation leads to remote code execution through included PHP file execution.

Summary generated and translated by AI from the official description.
An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
WordPress · WordPress
public PoCs found — 48
exploitdbwww.exploit-db.com/exploits/52690unverifiedgithubgithub.com/ressl/cve-2026-87902-poc★ 45githubgithub.com/abraxas/CVE-2026-87902★ 36githubgithub.com/tc4dy/CVE-2026-87902-Toolkit★ 15githubgithub.com/dinosn/cve-2026-87902-wordpress-lfi-lab★ 13githubgithub.com/vulpecuna/CVE-2026-87902★ 9githubgithub.com/tonydelouvre/CVE-2026-87902★ 5githubgithub.com/HackfutSecRoot/CVE-2026-87902★ 3githubgithub.com/crowsec-edtech/CVE-2026-87902★ 3githubgithub.com/ynsmroztas/WPSniper★ 3githubgithub.com/Hassham1/CVE-2026-87902★ 2githubgithub.com/Maalfer/CVE-2026-87902-exploit★ 2githubgithub.com/bhideki/CVE-2026-87902★ 2githubgithub.com/MRdark-ops/CVE-2026-87902★ 1githubgithub.com/abatsakidis/wp-cve-2026-87902-checker★ 1githubgithub.com/langz337/CVE-2026-87902★ 1githubgithub.com/xiaxiu555/cve-2026-87902★ 1githubgithub.com/khellwan/CVE-2026-87902_PoC★ 0githubgithub.com/rwxrwxs/CVE-2026-87902★ 0githubgithub.com/Lutfifakee-Project/CVE-2026-87902★ 0githubgithub.com/rabakuku/CVE-2026-87902-A-working-PoC-for-WordPress-s-critical-path-traversal★ 0githubgithub.com/nextco/wordpress-cve-2026-87902★ 0githubgithub.com/SVTagan/WP-CVE-2026-87902★ 0githubgithub.com/griisemine/cve-2026-87902-detection★ 0githubgithub.com/zer0dayf/CVE-2026-87902★ 0githubgithub.com/pwnVader/CVE-2026-87902-PoC-pwnVader★ 0githubgithub.com/itskill-jp/wordpress-upgrade-check★ 0githubgithub.com/joaovicdev/EXPLOIT-CVE-2026-87902★ 0githubgithub.com/zyphorixofficialmain-lab/cve-2026-87902★ 0vulncheckvulncheck.com/xdb/e2894868d6fcunverifiedvulncheckvulncheck.com/xdb/ab1094c5ba42unverifiedvulncheckvulncheck.com/xdb/5a69d16cd73dunverifiedvulncheckvulncheck.com/xdb/936b8c2e447cunverifiedvulncheckvulncheck.com/xdb/a793d5873982unverifiedvulncheckvulncheck.com/xdb/937ae20f4eaeunverifiedvulncheckvulncheck.com/xdb/91e9decb691eunverifiedvulncheckvulncheck.com/xdb/5b096847a4fcunverifiedvulncheckvulncheck.com/xdb/27a35f8d4168unverifiedvulncheckvulncheck.com/xdb/0579c29fc74dunverifiedvulncheckvulncheck.com/xdb/5d379082e1b8unverifiedvulncheckvulncheck.com/xdb/d9fe5d32f553unverifiedvulncheckvulncheck.com/xdb/a24b448daf49unverifiedvulncheckvulncheck.com/xdb/d31e340a5e47unverifiedvulncheckvulncheck.com/xdb/3015efbd6606unverifiedvulncheckvulncheck.com/xdb/0ee9627f9a20unverifiedvulncheckvulncheck.com/xdb/e9eaa83f1955unverifiedvulncheckvulncheck.com/xdb/117dc23a1f59unverifiedvulncheckvulncheck.com/xdb/576e3bed9ae1unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.