{"answers":{"affected":"2 open source packages ship an affected version, including wordpress and wordpress-multisite. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2026-87902 in the wild since at least 25 Sep 2026.","fix":"Upgrade wordpress to 7.1.2 or later. US federal agencies must fix it by 28 Sep 2026.","what":"CVE-2026-87902 is a high-severity vulnerability in Wordpress Wordpress, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-87902 and fix it if it is affected.\n\nWhat it is: CVE-2026-87902 is a high-severity vulnerability in Wordpress Wordpress, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2026-87902 in the wild since at least 25 Sep 2026.\n\nAffected packages and fixed versions:\n- wordpress (Bitnami): affected all versions; fixed in 7.1.2\n- wordpress-multisite (Bitnami): affected all versions; fixed in 7.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-87902/ (Markdown: https://insights.sbomify.com/CVE-2026-87902/index.md)","id":"CVE-2026-87902","markdown":"https://insights.sbomify.com/CVE-2026-87902/index.md","name":"CVE-2026-87902","record":{"aliases":["BIT-wordpress-2026-87902","BIT-wordpress-multisite-2026-87902","DEBIAN-CVE-2026-87902","MINI-469p-w96q-xx8p","MINI-h4qc-wjw9-5pwc","UBUNTU-CVE-2026-87902"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"WordPress CMS","requires_auth":"none","summary":"Unauthenticated attackers can include arbitrary local PHP files via page template resolution, potentially leading to remote code execution under specific server and theme conditions.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"wordpress","vendor":"wordpress"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"}],"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.","ecosystems":["Bitnami"],"exploits":{"exploitdb":1,"first_seen":"2026-09-22","github_poc":25,"max_poc_stars":44,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-09-22T18:40:26Z","kind":"github_poc","ref":"https://github.com/ressl/cve-2026-87902-poc","stars":44,"title":"PoC for CVE-2026-87902 — unauthenticated path traversal in WordPress page-template resolution (local PHP inclusion, conditional RCE) with a pinned vulnerable lab"},{"date":"2026-09-22T18:13:48Z","kind":"github_poc","ref":"https://github.com/abraxas/CVE-2026-87902","stars":35,"title":"CVE-2026-87902 - WordPress - WordPress Core - Critical 9.2 - Unauthenticated Local File Inclusion (conditional RCE)"},{"date":"2026-09-23T19:21:48Z","kind":"github_poc","ref":"https://github.com/tc4dy/CVE-2026-87902-Toolkit","stars":15,"title":"CVE-2026-87902 – WordPress Core LFI→RCE Toolkit (CVSS 9.2) - Red/Blue Team suite for WordPress 4.7–7.1.1. | 2 tools: Full Exploit (LFI, PEAR RCE, admin create, webshell, reverse shell, loot, mass scan, stealth) \u0026 SafeChecker (version detect, risk audit, JSON report). Use Ethically \u0026 Authorized Enviorement, Stay Legal  \u003c3"},{"date":"2026-09-23T05:20:08Z","kind":"github_poc","ref":"https://github.com/dinosn/cve-2026-87902-wordpress-lfi-lab","stars":13,"title":"Reproduction lab + URL-list scanner + PoC for CVE-2026-87902 / GHSA-7hp8-65ch-5whp — WordPress get_page_template() unauthenticated LFI to conditional RCE (WP 4.7.0-7.1.1, fixed 7.1.2). Authorized/defensive testing."},{"date":"2026-09-22T18:32:56Z","kind":"github_poc","ref":"https://github.com/vulpecuna/CVE-2026-87902","stars":9,"title":"Unauthenticated RCE on Wordpress"},{"date":"2026-09-29T20:17:47Z","kind":"github_poc","ref":"https://github.com/tonydelouvre/CVE-2026-87902","stars":5,"title":"XWP_RCE — CVE-2026-87902 Hacker Console"},{"date":"2026-09-23T12:20:58Z","kind":"github_poc","ref":"https://github.com/ynsmroztas/WPSniper","stars":3,"title":"CVE-2026-87902 detector. WordPress get_page_template LFI class. Detect-only. Authorized lab."},{"date":"2026-09-25T00:56:30Z","kind":"github_poc","ref":"https://github.com/crowsec-edtech/CVE-2026-87902","stars":3,"title":"Proof of concept for vulnerability CVE-2026-87902 in Wordpress"}],"tier":"exploited"},"has_fix":true,"headline":"WordPress Core Remote File Inclusion","id":"CVE-2026-87902","indexable":true,"kev":{"dateAdded":"2026-09-25","dueDate":"2026-09-28","knownRansomwareCampaignUse":"Unknown","product":"Core","requiredAction":"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.","vendorProject":"WordPress","vulnerabilityName":"WordPress Core Remote File Inclusion Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"wordpress:wordpress","products":["wordpress:wordpress"],"type":"file_upload","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Rox Appointment Booking \u003c 1.2.8 - Unauthenticated Internal Notes Disclosure via Service and Category REST Routes","id":"CVE-2026-87907"},"packages":[{"ecosystem":"Bitnami","fixed":["7.1.2"],"introduced":["0"],"last_affected":[],"package":"wordpress","purl":"pkg:bitnami/wordpress","source":"BIT-wordpress-2026-87902"},{"ecosystem":"Bitnami","fixed":["7.1.2"],"introduced":["0"],"last_affected":[],"package":"wordpress-multisite","purl":"pkg:bitnami/wordpress-multisite","source":"BIT-wordpress-multisite-2026-87902"}],"prev":{"headline":"Improper sanitization in the registration module allows reflected Cross-Site Scripting.","id":"CVE-2026-87901"},"products":["WordPress"],"published":"2026-09-22","related":[{"cvss_score":9.8,"headline":"WordPress Core Interpretation Conflict","id":"CVE-2026-63030","kev_date_added":"2026-07-21","published":"2026-07-17"},{"cvss_score":5.9,"headline":"WordPress Core SQL Injection","id":"CVE-2026-60137","kev_date_added":"2026-07-21","published":"2026-07-17"},{"cvss_score":10,"headline":"Cross-site scripting in n/a","id":"CVE-2012-2399","kev_date_added":null,"published":"2012-04-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2012-2400","kev_date_added":null,"published":"2012-04-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2011-3122","kev_date_added":null,"published":"2011-08-10"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2011-3125","kev_date_added":null,"published":"2011-08-10"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-26","vendors":["WordPress"]},"summary":"Unauthenticated attackers can include arbitrary local PHP files via page template resolution, potentially leading to remote code execution under specific server and theme conditions.","url":"https://insights.sbomify.com/CVE-2026-87902/"}