What to do1 step
Update WordPress to 7.0.3 or your branch's security release.
Fixes were backported to all branches back to 4.7.
Are you affected?only if all are true
- The XSS on the login page needs no login; reaching PHP execution needs a logged-in administrator to visit an attacker page.
- Uses the admin's Application Password approval and the unfiltered_html capability, which single-site admins have by default.
Check your version
- WP-CLI
wp core version - Without WP-CLI, from the WordPress root
grep '^\$wp_version' wp-includes/version.php - Prompt for your own agent, read-onlyAm I affected by XSS2Shell?
Read the prompt
Check whether the systems I am authorized to inspect are affected by XSS2Shell (CVE-2026-64638). A pre-auth reflected XSS on the WordPress login screen that, once a logged-in admin visits an attacker page, creates an Application Password and uploads a plugin for PHP execution. It is exploitable under these conditions: - The XSS on the login page needs no login; reaching PHP execution needs a logged-in administrator to visit an attacker page. - Uses the admin's Application Password approval and the unfiltered_html capability, which single-site admins have by default. Fixed releases: - WordPress: 7.0.3 (branch 7.0) WordPress backported the fix to every branch back to 4.7. Commands the catalog lists to find the version or the setting (read each one before you run it): - WP-CLI: wp core version - Without WP-CLI, from the WordPress root: grep '^\$wp_version' wp-includes/version.php What the catalog says to do on an affected system (report these, do not carry them out): 1. Update WordPress to 7.0.3 or your branch's security release. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://wordpress.2shell.wtf/xss2shell
Affected versions1 branch
| WordPress branch | Fixed in |
|---|---|
| 7.0 | 7.0.3 |
WordPress backported the fix to every branch back to 4.7.
Proof of concept1 public PoC
For testing systems you own or are authorized to test. A PoC repository can be fake or carry malware: read it before you run it.
- Open the PoC
Public PoC and nuclei template for the pre-auth XSS-to-RCE chain
Timeline4 events
Reported to the vendor
Reported to WordPress by pwn.ai
Patched
WordPress 7.0.3 released
Disclosed
pwn.ai publishes the chain
Public PoC
Public PoC and nuclei template for the pre-auth XSS-to-RCE chain
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
4 changes since it was published
- Linked a public PoC for the chain.
- Remediation steps got short titles; no fact changed.
- Added commands to check the installed version.
- Added exploit conditions from pwn.ai and the WordPress 7.0.3 release notes.
