Skip to content
Threat Feed
high advisory

Stored Cross-Site Scripting Vulnerability in WP Rocket

WP Rocket versions up to and including 3.21.0.1 are vulnerable to unauthenticated Stored Cross-Site Scripting via the rocket_beacon AJAX endpoint.

CVE search metadata

CVE search record: CVE-2026-5934. Severity: high. CVSS: 7.2. KEV: no. Product: WP Rocket (<= 3.21.0.1). Brief: Stored Cross-Site Scripting Vulnerability in WP Rocket. Brief link: https://feed.craftedsignal.io/briefs/2026-08-wp-rocket-xss/

The WP Rocket plugin for WordPress, in versions up to and including 3.21.0.1, contains a critical Stored Cross-Site Scripting (XSS) vulnerability identified as CVE-2026-5934. The flaw originates from insufficient input sanitization and output escaping mechanisms within the 'rocket_beacon' AJAX endpoint. This vulnerability allows unauthenticated attackers to inject arbitrary malicious web scripts into the plugin's data handling processes. When a user - typically an administrator - accesses the page where the injected script is stored, the browser executes the malicious code. This could lead to session hijacking, unauthorized administrative actions, or persistent defacement of the affected WordPress instance. Defenders should prioritize updating to the latest version to mitigate this injection vector.

Impact

Successful exploitation allows unauthenticated attackers to execute arbitrary JavaScript in the context of a victim's session. This poses a significant risk to WordPress site integrity, potentially allowing attackers to steal session cookies, perform unauthorized configuration changes, or redirect traffic. The vulnerability impacts all WordPress sites running vulnerable versions of the WP Rocket plugin.

Recommendation

  1. Upgrade the WP Rocket plugin to the version that includes the patch for CVE-2026-5934.
  2. Implement a strict Content Security Policy (CSP) to mitigate the impact of unauthorized script execution.
  3. Monitor web server logs for suspicious requests targeting the 'rocket_beacon' AJAX endpoint.

Immediate actions

Inventory all WordPress installations and identify versions of WP Rocket running

IT Operations 24h

Mitigations

Upgrade WP Rocket to the patched version immediately

immediate IT Operations

CVE-2026-5934

Detection coverage 1

Detect CVE-2026-5934 Exploitation - Stored XSS in WP Rocket

high

Detects potential exploitation attempts by identifying requests to the rocket_beacon endpoint containing common XSS script tags.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →