Critical WP Rocket Vulnerability (CVE-2026-125812): Patch Your WordPress Site Now

If you use WP Rocket to speed up your WordPress website, stop what you are doing and check your plugin version immediately.

A critical security flaw tracked as CVE-2026-125812 has been discovered in the popular caching plugin, carrying a near-maximum severity score of 9.8 out of 10 (Critical). Even more concerning, automated attacks exploiting this vulnerability are already happening in the wild.

Here is everything you need to know about the threat, how to patch it right away, and how to verify your site hasn’t already been hit.

Vulnerability Snapshot

  • Plugin Affected: WP Rocket (wp-rocket)
  • CVE ID: CVE-2026-125812
  • Severity: Critical (CVSS 9.8)
  • Vulnerability Type: Path Traversal leading to Unauthenticated Remote Code Execution (RCE)
  • Vulnerable Versions: All versions prior to 3.24.2
  • Patched Version: 3.24.2 (Released November 19, 2026)

What Is CVE-2026-125812 and Why Is It So Dangerous?

WP Rocket improves site performance by generating cached HTML, CSS, and font files on your web server. Researchers discovered a path traversal flaw in how WP Rocket validates and builds file paths for cached assets—specifically involving CSS background image LazyLoading, local font hosting, and preconnect origin handling.

Because of insufficient path validation, an unauthenticated attacker (someone who doesn’t even need a login or password for your site) can send a specially crafted URL request to manipulate where WP Rocket writes files on your server.

In real-world attacks observed immediately after the flaw went public, threat actors have used this weakness to:

  1. Drop malicious PHP webshells directly onto the server.
  2. Read sensitive configuration files like wp-config.php (exposing database credentials and security keys).
  3. Inject rogue administrator accounts into the WordPress database.
Diagram illustrating CVE-2026-125812 path traversal remote code execution where an attacker sends a crafted URL request bypassing WP Rocket cache validation to access the WordPress server directory and deploy a malicious PHP webshell, expose wp-config.php data, and create a rogue admin account.

Why Your Site Might Still Be Vulnerable

Many WordPress site owners assume their plugins update automatically. However, WP Rocket disables unattended background updates by default because caching changes can occasionally affect how a site renders on the front end.

Additionally, if your WP Rocket license has expired, WordPress will not pull down the security patch through the standard dashboard updater. That means millions of sites are still running vulnerable versions right now.

Step 1: Update WP Rocket Immediately

To close this security hole, you must be running WP Rocket version 3.24.2 or higher.

  1. Log in to your WordPress Admin Dashboard.
  2. Go to Plugins → Installed Plugins.
  3. Locate WP Rocket and check the version number listed below the description.
  4. If it is anything lower than 3.24.2, click Update Now.
  5. Once the update completes, hover over WP Rocket in the top admin bar and click Clear and preload cache.

(Note: If your license is expired and you cannot update immediately, deactivate and delete the plugin temporarily until you can renew or switch to an alternative caching solution. Leaving an unpatched version active puts your entire server at risk.)

Step 2: Check Your Site for Signs of Compromise

Because automated bots began scanning for and exploiting CVE-2026-125812 within hours of its public disclosure, updating alone isn’t enough if you patched late. Run through this quick security audit to make sure your site is clean:

  • Audit WordPress Users: Go to Users → All Users and filter by Administrator. Look for any unfamiliar usernames or email addresses you did not create.
  • Scan for Unknown PHP Files: Using your hosting file manager (such as cPanel) or SFTP, check your root directory, /wp-content/, and /wp-content/uploads/ for recently modified or strangely named .php files. (Remember: legitimate media uploads folders should almost never contain .php files.)
  • Run a Malware Scan: Use a trusted security plugin like Wordfence or a server-level scanner to check core files and themes for unauthorized modifications.
  • Rotate Credentials (If Suspicious Activity Is Found): If you spot any unauthorized files or admin accounts, immediately change your WordPress salts, database password in wp-config.php, hosting control panel password, and all admin user passwords.

Stay Protected Against Zero-Day Threats

Critical plugin vulnerabilities like CVE-2026-125812 prove how fast attackers move once a flaw goes public. Keeping your core files, themes, and plugins patched—paired with an active Web Application Firewall (WAF) and reliable off-site backups—is the best defense against automated intrusions.

Need help securing your WordPress website or managing routine updates?
At The McSwain Group, our managed WordPress hosting and website security services handle proactive patching, daily backups, and real-time threat monitoring so you never have to worry about waking up to a compromised site. Contact our team today to get your site audited and protected.

Hello! I'm McSwizzleStix

I am a disabled Air Force veteran and retired IT Professional.

You can’t separate peace from freedom because no one can be at peace unless he has his freedom.