CVE-2026-5934: WP Rocket <= 3.21.0.1 - Unauthenticated Stored Cross-Site Scripting via Picture Source Attributes in rocket_beacon Endpoint
The WP Rocket plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 3.21.0.1. This is due to insufficient input sanitization and output escaping of user-supplied data via the rocketbeacon AJAX endpoint. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wordpress/wp-rocketto a version that resolves this vulnerability.Fixed in 3.21.0.1 - Compensating control
Mitigate unauthenticated exploitation of the WP Rocket rocket_beacon AJAX endpoint by restricting access to the endpoint to trusted users/sessions (e.g., via WAF/rate limiting/ACL, only allow requests from legitimate WordPress users or the site front-end as required).
Event History
Frequently Asked Questions
Which installations are affected?
WP Rocket versions up to and including 3.21.0.1 are affected. The issue is exposed through the rocket_beacon AJAX endpoint.
Does exploitation require an authenticated WordPress account or user interaction?
No. The vulnerability can be exploited by an unauthenticated attacker, and exploitation does not require user interaction from the attacker’s perspective.
What happens after successful exploitation?
An attacker can store arbitrary web script content in an affected page. That script executes when a user later accesses the injected page, potentially affecting confidentiality and integrity in the victim’s browser context.
Is an updated version available?
The affected range ends at version 3.21.0.1, and the provided release reference is for WP Rocket 3.21.1.