WordPress Issues Patch for Critical Flaw That Can Enable Code Execution on Some Servers
WordPress has patched a critical vulnerability in its core software that enables an attacker without an account to make a site load a PHP file from outside its theme directories.
On certain servers, this can go even further, letting the attacker execute their own code. The fix was released on September 22 in WordPress 7.1.2, along with patches for every branch the project still maintains, going back to 4.7, and WordPress is urging site owners to update immediately.
WordPress classifies the flaw as critical, gives it a CVSS score of 9.2, and tracks it as CVE-2026-87902. Exploiting it requires no account and no action from any logged-in user.
All releases between 4.7.0 and 7.1.1, inclusive, are impacted. This covers 7.1.1 as well, which came from WordPress's September 17 security r...










