What is CVE-2026-87902?

WordPress Core contains a remote file inclusion vulnerability which could allow an unauthenticated attacker to make page-template resolution include a chosen readable local `.php` file outside the active theme directories, leading to remote code execution.

CISA added this issue to its exploited-vulnerability catalog on 2026-09-25. This is the catalog date, not this article’s publication date.

Sources: CISA Known Exploited Vulnerabilities catalog, CVE-2026-87902 — NVD, CVE-2026-87902 — CVE Program record

First, confirm where the vulnerable product is running

WordPress Core CVE-2026-87902 enables unauthenticated remote file inclusion via get_page_template(). When an attacker supplies a readable local .php file path outside active theme directories, the function may include it, potentially achieving remote code execution if server and theme pre-conditions are met. No fixed version is established in the structured catalog; the linked GitHub advisory (GHSA-7hp8-65ch-5whp) should be consulted for the complete fix timeline. The CISA KEV record notes that CISA KEV does not track remediation status for individual assets; a patch does not prove there was no earlier compromise. Apply mitigations per vendor instructions and comply with CISA BOD 26-04 risk-prioritization and forensics triage requirements.

The named vulnerable product is WordPress Core. Deployment on a cloud platform does not by itself establish that a managed AWS, Azure or GCP service is vulnerable. Confirm the product, version, vendor-supported deployment and remediation owner.

Vendor remediation comes first

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.

Use the current vendor advisory for affected versions and fixed builds. This catalog entry does not establish a universal fixed version or a cloud-specific hotfix.

Sources: CISA Known Exploited Vulnerabilities catalog, CVE-2026-87902 — NVD

AWS: remediation and deployment checks

Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.

  1. Check if WordPress runs on an EC2 instance or AWS-managed platform; if customer-managed, verify the instance OS and WordPress package source can receive the vendor-supported fix via Package Manager or AWS Systems Manager Patch Manager, confirming patch applicability before change.
  2. Confirm internet-facing status of the WordPress endpoint; if exposed, validate that BOD 26-04 risk-prioritization criteria are met and that firewall or WAF rules block unauthenticated access to get_page_template() resolution paths as a compensating control.
  3. Review AWS Systems Manager Patch Manager logs after applying the vendor fix to verify the WordPress package updated to the repository version; do not assume Patch Manager covers arbitrary vendor appliances without a supported OS package.
  4. If WordPress runs on AWS Lightsail or a container service, consult the vendor advisory for the supported upgrade path; do not claim OS-level patching alone remediates the application flaw.

Sources: AWS Systems Manager Patch Manager

Azure: remediation and deployment checks

Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.

  1. Verify whether WordPress is deployed on an Azure VM or Azure Arc machine; if so, use Azure Update Manager to assess and manage the supported OS and application package update, confirming the WordPress package version changes before and after the update.
  2. If WordPress runs as an Azure App Service or Azure Container Instance, check the vendor advisory for the supported platform or container version upgrade; Azure Update Manager does not patch third-party appliance firmware or arbitrary containerized applications.
  3. Confirm internet exposure of the WordPress endpoint; if facing public endpoints, apply BOD 26-04 guidance by restricting unauthenticated traffic via Azure Front Door or Application Gateway WAF rules as a compensating measure while a vendor fix is validated.
  4. Record the update result in Azure Update Manager; CISA KEV does not track remediation status for individual assets, so internal verification is required to confirm the fix was applied successfully.

Sources: Azure Update Manager overview

GCP: remediation and deployment checks

Use these checks only if your inventory confirms an affected, vendor-supported deployment in this environment.

  1. Check if WordPress runs on a Google Compute Engine VM; if so, Google Cloud VM Manager Patch can operate on the OS and update the WordPress package through the OS Config API, but only if the package is available from the OS repository and the VM has repository access.
  2. For WordPress on Google Kubernetes Engine, consult the vendor advisory for a supported container image update; VM Manager Patch does not update containerized vendor applications, and no managed cloud service exposure is established for this CVE.
  3. Validate that the WordPress instance is not internet-facing without compensation; if exposed, implement GCP Cloud Armor policies to block unauthenticated requests to the get_page_template() resolution path per BOD 26-04 interim controls.
  4. After applying the OS-level patch or container update, verify the WordPress version changed; CISA KEV does not track per-asset remediation, so confirm the fix via the application status or plugin/theme file listing.

Sources: Google Cloud VM Manager — About Patch

How to verify the fix

  1. Examine the WordPress site's theme directory and active template files to confirm that get_page_template() no longer resolves to paths outside the active theme, using the WordPress Codex or source diff from the GitHub advisory as reference.
  2. Run a local file inclusion test on a staging environment: attempt to access a readable .php file via a crafted page template parameter and verify the server returns an error or blocks the request, confirming the fix behaves as documented.
  3. Check the WordPress version number in the admin footer or via the REST API; compare it against the version noted in the GitHub advisory GHSA-7hp8-65ch-5whp to confirm the update aligns with the published fix.
  4. Review server access and error logs for any attempted exploits of get_page_template() between the vulnerability disclosure date (2026-09-22) and the date of patch application; document findings for forensics triage per CISA guidance.

Questions teams ask

Does WordPress release a specific patched version for CVE-2026-87902?

The structured CVE entry does not list a fixed version; the linked GitHub advisory (GHSA-7hp8-65ch-5whp) should be consulted. Do not assume an OS package update alone resolves the issue without verifying the vendor's recommended upgrade path.

Is CISA KEV tracking remediation status for my WordPress installation?

CISA KEV does not track remediation status for individual assets; a patch does not prove there was no earlier compromise. Stakeholders must evaluate internet exposure and apply BOD 26-04 guidance independently.

Can AWS Systems Manager Patch Manager automatically fix this CVE on my WordPress server?

Patch Manager can orchestrate supported OS and application package updates; support depends on the operating system and package source. It does not cover arbitrary vendor appliances or firmware. Verify the vendor-supported fix and perform post-change validation.

If my WordPress site is on a managed service like WordPress.com, am I affected?

Applicability is not established by the sources for managed services. Do not assert that another managed service is affected or unaffected; consult the service provider's security notice for their remediation timeline.

Sources & further reading

This brief summarizes public source material. Confirm affected versions and the current vendor instructions before changing production. No original exploit validation is claimed.