Website security and administration

The Critical WordPress 7.0.2 Vulnerability — What Happened in July 2026 and What the Forced Update Teaches Us

Text
Table of contents

On 18 July 2026, wordpress.org released version 7.0.2, patching a critical REST API vulnerability that allowed remote code execution as well as an SQL injection flaw — and for the first time in years it triggered forced automatic updates for all sites, including those with updates disabled. Sites that blocked this mechanism at the code or server level remained vulnerable. The takeaway for site owners: automatic security updates must be enabled, and "we don't update because it works" is no longer an option.

Scenario: Friday, July 17

The day before 7.0.2 was released, the vulnerability had already been publicly described in a report to the security team. Bot scanners started looking for vulnerable sites within hours. Version 7.0.2 came out on Saturday; wordpress.org triggered a forced update that also covered the 6.x branches with the corresponding patches.

Three types of sites we saw in the following days:

Type of websiteWhat happenedOutcome
With automatic updates enabledUpdated overnight from Saturday to SundaySecure; in isolated cases, a plugin conflict to fix on Monday
With updates disabled in wp-config.php (AUTOMATIC_UPDATER_DISABLED)The forced update didn't workVulnerable until updated manually — some were updated only weeks later
On hosting that blocks outgoing connections or with cron inactiveNo updatesSame as above; several cases of break-ins through the REST API

The technical details of the vulnerability don't matter here. What matters is that the gap between disclosure and the first exploitation attempts is measured in hours, not weeks.

Why the forced update didn't reach everyone

WordPress's automatic update mechanism runs through WP-Cron (triggered when someone visits the site) and requires an outgoing connection to wordpress.org. It won't work when:

  • w wp-config.php define('AUTOMATIC_UPDATER_DISABLED', true); or WP_AUTO_UPDATE_CORE is set to false — a common "hardening" tip from tutorials,
  • a security or "optimization" plugin has disabled updates,
  • WP-Cron is disabled with no system cron to replace it,
  • the hosting provider blocks outbound traffic,
  • the site is managed by a system that overwrites files (e.g., a deployment from a repository without a core update).

Each of these cases makes sense in a specific situation — but it requires someone to track security releases manually. If no one does, disabling automatic updates is a mistake.

What to do on your site — today

  1. Check your version: Dashboard → Updates. Required: 7.0.3 or newer (7.1+). Release context in the article on WordPress 7.
  2. Check whether automatic updates are working: Tools → Site Health — the section on automatic updates tells you plainly whether they're enabled and what's blocking them.
  3. If they're disabled — enable them at least for core security releases. That's the WordPress default; disabling them was someone's decision.
  4. If your site was vulnerable for weeks — check whether it has been compromised: unknown users with the administrator role, files modified in July/August, new posts or redirects. The procedure is in the article WordPress hacked — what now.
  5. WP-Cron: if disabled — a system cron every 5–15 minutes.

What to enable automatically and what not to

The July incident doesn't change the rule: automatic updates for core security releases — always. Major core releases, WooCommerce, payment gateways, page builders — after testing on a copy. The difference is the scale of risk: a security release rarely breaks anything, while skipping it leaves your site open to known attacks.

ElementAutomaticallyRationale
Core security releases (7.0.x)YesCritical patches; minimal risk of regression
Major core releases (7.0 → 7.1)After testingAPI changes, possible conflicts
Security plugins and formsYesFrequent patches, low impact on the front end
WooCommerce, payments, builderNo — on stagingImpact on sales
ThemeAfter testingAppearance

Testing before every major change — in the article on staging.

An extra layer: what protects you when a patch is late

Automatic updates are a reaction. Three elements that work before a patch is released:

  • A web application firewall (WAF) with rules updated by the provider — it blocks known REST API attack patterns before you update the core.
  • Restricting the REST API for logged-out users if the site doesn't need it publicly (note: some plugins and Elementor require access — test on staging).
  • File change monitoring — an alert when a file that shouldn't be there appears in the core.

The basics are in our WordPress security guide.

What July teaches us — 4 takeaways

  1. Response time is measured in hours. Updating manually "when you have a spare moment" doesn't fit into that window.
  2. Disabling automatic updates is a decision that comes with an obligation — someone has to track releases every day.
  3. Old branches aren't safe — 6.x got the patch, but future ones may not. Updating to 7.x is a must.
  4. A forced update is a safety net, not a strategy — wordpress.org used it because the scale was exceptional. Don't count on it happening again for every vulnerability.

From our experience

On the weekend of July 18–19, we checked all the sites under our care: those with automatic updates moved to 7.0.2 on their own, and we updated the rest manually on Sunday morning. On Monday, we ran conflict tests with page builders on staging and made two fixes.

If you don't know whether your site updated in July, we'll check it and set up updates — with security release monitoring and testing on a copy for bigger changes.

FAQ — the 7.0.2 vulnerability and forced updates

Was my site updated automatically?

Check the version in Dashboard → Updates — 7.0.2 or newer means it did. In Tools → Site Health you'll see whether automatic updates are active. If your version is older than 7.0.2 — update immediately.

Can WordPress update itself without my permission?

Yes — for security releases this has been the default behavior since version 3.7, and in exceptional cases wordpress.org can force an update even when some opt-outs are in place. You can block it in the configuration, but then the responsibility for tracking patches falls on you.

Did sites on WordPress 6.x get the patch too?

Yes, the appropriate versions were released for the supported 6.x branches. That doesn't mean 6.x is safe in the long term — future patches may no longer cover older branches. Upgrading to 7.x is recommended.

Author: Adrian Kamiński — Websky Studio, Poznań. WordPress site administration and security — security releases deployed on the day of publication, major ones after testing on a copy.

Your feedback

Was this article helpful?

One click — it helps me choose future topics.

Share this article

Websky Newsletter

New posts straight to your inbox.

Once a month — practical insights on WordPress, WooCommerce, SEO and AI. No spam, unsubscribe with one click.

  • Case studies from Polish projects
  • Checklists and templates to download
  • Google and WordPress changes in a nutshell

Your data goes to Websky Studio only. You can unsubscribe with one click in every message.

Website administration

Backups, monitoring and peace of mind.

Ongoing WordPress care: updates, backups, uptime monitoring, and a fast response when something goes wrong.

See website care plans