If a random admin account showed up in WordPress with a username starting with w2s_ or a wp2shell.local email address, your site was hit by the wp2shell exploit.
These accounts are created by automated attack scripts going after a critical vulnerability in WordPress core, and you need to lock down and clean up the site right away. Don’t just delete the user and walk away. The underlying flaw may still be open, and your password hashes may already be exposed.
What Is the wp2shell Exploit?
wp2shell is an unauthenticated remote code execution chain in WordPress core itself, so it works on a default install with zero vulnerable plugins. It chains two separate bugs together:
- CVE-2026-63030: a route confusion flaw in the WordPress REST API batch endpoint (
/wp-json/batch/v1) - CVE-2026-60137: a SQL injection vulnerability in
WP_Query
Together they let an attacker with no credentials forge an admin session, create a new administrator account, and upload a malicious plugin to run code on your server. The flaws were publicly disclosed on July 17, 2026, and CISA added them to the Known Exploited Vulnerabilities (KEV) catalog on July 21, 2026. WordPress patched the chain in versions 7.0.2, 6.9.5 and 6.8.6.
If you want the deep technical breakdowns, these are the best references I’ve found:
- Wordfence technical analysis
- Bitdefender technical advisory
- Wiz report on in-the-wild exploitation
- Eye Security defender’s guide
- BleepingComputer coverage of active webshell attacks
How to Spot an Unknown Admin User From WordPress w2s_ Campaigns
The public proof of concept for wp2shell follows a very specific naming pattern. If you’re searching for a w2s_ user in WordPress, you’ll usually see a username starting with w2s_ followed by 12 random hex characters, like w2s_8328070d3fd8. The email on that account is usually either [email protected] or [email protected].
Multiple threat groups picked up the exploit within hours of disclosure, so look for these other known variants in your Users list too:
| Type | Known patterns |
|---|---|
| Usernames | w2s_*, wp2_*, wpsvc_*, nx_*, wpenginebot |
| Email domains | @wp2shell.local, @wp2shell.invalid, @x.lol, wordpress-svc.internal |
If you see any of these, treat the site as compromised until you’ve checked every file and reset every credential.
Step-by-Step wp2shell Cleanup Checklist
SSH into your server and run these steps in order with WP-CLI. Don’t skip the password resets or salt rotation, even if your files look clean.
1. List All Administrator Accounts
Pull a full list of every administrator account, their email and when they were registered:
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
Look for w2s_*, wp2_*, wpsvc_*, nx_*, wpenginebot, or any wp2shell.local email or domain you don’t recognize.
2. Save Their Details, Then Delete Them
Copy the output from step 1 into a local text file for your records. The user_registered timestamps help you match things up against server logs or database records later. Once that’s saved, delete the rogue accounts by ID:
wp user delete <id1> <id2> <id3> --yes
Replace <id1> <id2> <id3> with the actual numeric IDs from step 1.
3. Update WordPress Core & Check Auto-Updates
Update right away to WordPress 7.0.2 or later (or 6.9.5 / 6.8.6 if you’re pinned to an older branch):
wp core update
wp core version
After updating, check your web root for a .git folder with ls -la. WordPress silently skips automatic core updates when it finds a version control directory like .git or .svn. If your site deploys with Git and you still want automatic security updates, add this to wp-config.php or a must-use plugin, or make sure your CI/CD pipeline deploys core security updates quickly:
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' );
4. Verify Core & Plugin Checksums
Check whether any WordPress core files or WordPress.org plugins were changed to hide a backdoor:
wp core verify-checksums
wp plugin verify-checksums --all
If either command flags modified or unknown files, look at them right away or reinstall clean copies. Also check wp-content/mu-plugins/ by hand, because must-use plugins aren’t covered by the standard plugin checksums.
5. Search for Webshells & Malicious Code
Run a quick search across wp-content for PHP files in your uploads directory, base64_decode or eval calls, and leftover strings that mention wp2shell:
find wp-content/uploads -type f -name "*.php"
grep -rnE "wp2shell|base64_decode\(|eval\(" wp-content/
Some legitimate plugins use base64_decode, so review the hits instead of blindly deleting files. Any .php file inside wp-content/uploads/ is almost always malicious.
6. Rotate Your WordPress Security Salts
Rotating salts invalidates every login cookie and kicks out every logged-in session, including any attacker session:
wp config shuffle-salts
7. Force a Password Reset for Every User
CVE-2026-60137 is a SQL injection flaw, so an attacker who hit your site could have read the wp_users table and pulled password hashes. Force a reset for every account on the site:
wp user reset-password $(wp user list --field=ID)
Also check Users > Profile > Application Passwords on your real admin accounts and revoke anything you don’t recognize.
8. Harden Access Going Forward
Once the site is clean and patched:
- Require two-factor authentication (2FA) for every administrator account.
- Block unauthenticated REST API user enumeration if your site doesn’t need public author endpoints.
- Check your web application firewall (WAF) and confirm the plugin or edge service is actually running. Old settings left behind in the database do nothing.
If You Manage Multiple WordPress Sites
Attackers don’t go after wp2shell one site at a time. They scan the internet in bulk and fire the exploit at every vulnerable WordPress install they find. If you found a w2s_ user on one site, assume every other site on that server or in your portfolio was probed during the same window.
Run wp user list --role=administrator and wp core version across every site you manage today. If you host several sites on the same server, check file permissions and isolated system users too, since a webshell on one unpatched site can sometimes read files on the installs next to it.
Frequently Asked Questions
Is w2s_ a WordPress Plugin?
No. w2s_ isn’t a plugin, theme or WordPress core feature. It’s the username prefix generated by the public proof of concept script for the wp2shell exploit (CVE-2026-63030 and CVE-2026-60137).
Can I Just Delete the w2s_ Users?
No. Deleting the rogue administrator accounts only removes the symptom you can see, and the vulnerability is still there. If you don’t update WordPress core to 7.0.2, 6.9.5 or 6.8.6, automated scanners will just create new admin accounts again. You also need to check your files for webshells, rotate salts and reset every user’s password.
Was My Site Hacked if I Found a w2s_ Admin User or wp2shell.local Email?
Yes. A w2s_ username or wp2shell.local email in your Users list means an unauthenticated attacker successfully exploited your WordPress site. Even if they didn’t upload a webshell or deface the site, they got administrator access and may have read your database.
Why Didn’t WordPress Auto-Update to Block wp2shell?
The most common reason is a .git or .svn directory in the web root, which makes WordPress silently turn off automatic core updates. Other common causes are AUTOMATIC_UPDATER_DISABLED set to true in wp-config.php, file permission problems, or a broken WP-Cron schedule.
If you need help investigating a compromised site or running a full cleanup, I do WordPress security cleanups.