WordPress core upgrade race lets attackers run code during updates
A WordPress update bug lets attackers run code; update to 7.1.4.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Code execution during WordPress core upgrades. WordPress Core 4.7 through 7.1.3 uses predictable, web-accessible staging paths during full-package core upgrades, which lets unauthenticated attackers execute code on the server during the upgrade window (CVE-2026-119977, CVSS 3.1 8.1, attack complexity high). WordPress fixed it in 7.1.4 on 2026-10-28, and SecurityWeek reports the fix was backported to branches through 4.7. SecurityWeek reports that Wordfence recorded more than 18,500 requests targeting staged setup-config.php installer paths in the first 21 hours, and that Wordfence has not reported successful compromises. CISA added the flaw to its Known Exploited Vulnerabilities catalog on 2026-11-03.
- Exposure starts
- Not known yet (WordPress has not said which release introduced the staging paths)
- Exposure ends
- Not known yet (exposure ends when each site runs 7.1.4 or its branch backport)
- Confidence
- low
- Scope
- WordPress 4.7 to 7.1.3 sites that ran a full core upgrade before patching; secrets in wp-config.php and plugin settings
What to do, in this order
- Update WordPress to 7.1.4, or the security release for your branch
Only the update closes the hole. Rotating first would leave it open for the new secrets.
- Check wp-content/upgrade/ for leftover staged copies of WordPress, and look for administrator accounts and plugins you did not add
CISA marks this KEV entry for forensic triage, and the attack runs through the copies a full core upgrade unpacks there.
- Only if step 2 finds anything, or the site ran a full core upgrade while unpatched, rotate the database password, the auth keys and salts in wp-config.php, and the API keys plugins store
Advisory inference. Code running on the server can read all of these; no source reports that any were stolen.
anything else stored there
- Confirm the old database password is refused
A new password protects nothing while the database still accepts the old one.
Notes
- Advisory inference, not vendor guidance: no source tells you to rotate. The WordPress 7.1.4 post only says to update, and no source reports a successful compromise or stolen credentials. RotateIt advises rotating only if the forensic check finds something, or the site ran a full core upgrade while unpatched, because code running on the server can read wp-config.php (the database password and the auth keys and salts) and the API keys that plugins store.
- disclosed is the WordPress 7.1.4 release date (2026-10-28). CISA added the CVE to the KEV catalog on 2026-11-03, due 2026-11-06, and marks it for forensic triage. KEV known ransomware campaign use: Unknown.
- WordPress says the backports to older branches are in progress and will ship as they become ready, and that only the most recent version is actively supported.
How to tell if you’re affected
- WordPress version 4.7 through 7.1.3 that ran a full core upgrade before patching
- Requests to staged setup-config.php installer paths in web server logs
- Leftover staged copies of WordPress under wp-content/upgrade/
- Administrator accounts or plugins you did not add
Sources
- SecurityWeek: Fresh WordPress vulnerability in attackers' crosshairs
- CISA Known Exploited Vulnerabilities catalog (CVE-2026-119977 added 2026-11-03)
- NVD CVE-2026-119977
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.