← News
/DISPATCH · 2026-08-08

CVE-2026-64638: WordPress 7.0.3 Login Page Pre-Auth XSS2Shell, One-Click Admin Compromise

WordPress 7.0.3 (6 Aug) patches CVE-2026-64638, a CVSS 8.9 pre-auth reflected XSS on the login-failure page affecting all versions. pwn.ai demonstrated an XSS2Shell chain to admin session theft and PHP RCE.

WordPress 7.0.3, released 6 Aug 2026, patches a pre-auth reflected XSS on the login page. CVE-2026-64638, CVSS v3.1 8.9. Found by pwn.ai, who publicly demonstrated an XSS2Shell chain from XSS through to PHP code execution. Affects all WordPress versions. Patch is backported to the 4.7 branch. Sites without automatic background updates must upgrade immediately.

Incident overview

CVE-2026-64638 triggers on the login-failure error page that echoes the failed username. WordPress runs the submitted failed username through `sanitize_user()` and `wp_strip_all_tags()` before echo. Both depend on PHP `strip_tags()`, which does not strip pseudo-tag strings with whitespace after the angle bracket, e.g. `< img src=x >`. `wp_kses_post()` then re-parses the content as valid HTML, injecting attacker-controlled DOM nodes into the failed-login page. Same-origin method execution (SOME) + JSONP reflection + Application Password approval chain lets the attacker upload a WebShell and execute arbitrary PHP after one admin click on a malicious link.

Technical details and attack vector

Impact

Remediation

Sources