# CVE-2026-5934: WP Rocket stored cross-site scripting in rocket_beacon endpoint

Source: https://junglewise.ai/threats/cve-2026-5934-wp-rocket-stored-cross-site-scripting-in-rocket-beacon-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-28. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-5934 · Severity: high · CVSS 7.2 · Published 2026-08-28

WP Rocket is a widely-used WordPress caching and performance optimization plugin installed on hundreds of thousands of websites. A flaw in the rocket_beacon AJAX endpoint allows unauthenticated attackers to inject malicious JavaScript that persists in the database and executes when any user visits an affected page, enabling credential theft, malware distribution, or account hijacking without requiring any user interaction beyond visiting the site.

Technologies: [WP Media WP Rocket](https://junglewise.ai/threats/technologies/wp-rocket). Vendors: [WP Media](https://junglewise.ai/threats/vendors/wp-media).

## Quick answers

**Is CVE-2026-5934 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-5934 being exploited in the wild.

**How severe is CVE-2026-5934?** High severity, with a CVSS score of 7.2, published 28 August 2026.

**Which products and versions are affected?** WP Media WP Rocket up to 3.21.0.1.

**Is there a fix for CVE-2026-5934?** A patch was published on 2026-04-07: Version 3.21.1 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-5934 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-5934?** Check whether you run WP Media WP Rocket at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a Stored Cross-Site Scripting (XSS) flaw in the rocket_beacon AJAX endpoint of WP Rocket versions up to 3.21.0.1. The root cause is insufficient input sanitization and output escaping of user-supplied data submitted to this endpoint. Because the endpoint is accessible to unauthenticated users and the malicious payload is stored in the database, any subsequent visitor to an affected page will execute the injected script in their browser context. The vulnerability was patched in version 3.21.1. The attack requires no authentication, user interaction, or special preconditions beyond the plugin being installed and active.

## Affected products

- WP Media WP Rocket up to 3.21.0.1

## Timeline

- 2026-08-28: disclosed
- 2026-04-07: patched: Version 3.21.1 released

## References

- [https://github.com/wp-media/wp-rocket/releases/tag/v3.21.1](https://github.com/wp-media/wp-rocket/releases/tag/v3.21.1)
- [https://www.wordfence.com/threat-intel/vulnerabilities/id/3560bf50-2190-4469-9d92-b6b59f118324?source=cve](https://www.wordfence.com/threat-intel/vulnerabilities/id/3560bf50-2190-4469-9d92-b6b59f118324?source=cve)

## Related threats

- [WP Media WP Rocket broken access control](https://junglewise.ai/threats/cve-2026-97075-missing-authorization-vulnerability-in-wp-media-wp-rocket-wp)
- [WP Media WP Rocket code injection in regular expression](https://junglewise.ai/threats/cve-2026-97076-executable-regular-expression-error-vulnerability-in-wp-media-wp)
