Skip to main content

CVE-2026-87902: WordPress 7.1.2 critical local file inclusion in page template resolution

StatusAction required
CVECVE-2026-87902
AffectsWordPress core before 7.1.2
Action requiredUpdate core
DisclosedSeptember 22, 2026

What is the vulnerability?

CVE-2026-87902 is a critical vulnerability that doesn't require authentication to exploit. Under certain server and theme conditions, an unauthenticated attacker can cause page template resolution to include a chosen readable local PHP file outside the active theme directories, which could potentially lead to remote code execution.

Are sites on Pantheon affected?

Yes. WordPress sites running a version before 7.1.2 are affected until you update.

What Pantheon has done

Pantheon pre-deployed platform-wide mitigations (virtual patching through the routing network) against external abuse of this vulnerability, and monitors those rules. The mitigations don't replace the update.

What you need to do

Update to WordPress 7.1.2 as soon as possible from your Pantheon dashboard or Terminus. See how to apply core updates.

References