What the vulnerability does
01Description
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 rocket_beacon 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.
Explanation of Vulnerability in Simple Terms
02Summary
WP Rocket versions up to 3.21.0.1 contain a cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts into the site. The vulnerability affects the scope beyond the vulnerable component, potentially impacting other parts of the application. Site administrators should update to a version newer than 3.21.0.1 to remediate this issue.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that executes in visitors' browsers and affects other site functionality.
Potential impact on your site
04Site Impact
Visitors' browsers could execute attacker-controlled scripts, potentially stealing data or redirecting users.
Conditions required to exploit
05Prerequisites
No authentication or user interaction required; attacker can exploit this over the network.
Key dates
06Disclosure timeline
August 28, 2026
CVE published