Description
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.
Published: 2026-08-28
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability allows an attacker to inject arbitrary JavaScript into WordPress pages through the insecure rocket_beacon Ajax endpoint of WP Rocket up to version 3.21.0.1. The stored payload runs in every user’s browser that visits the affected page, enabling session theft, browser data exfiltration, defacement, or other downstream attacks. The weakness is a classic input validation failure (CWE‑79).

Affected Systems

All WordPress sites that have the WP Rocket plugin version 3.21.0.1 or earlier installed are affected. The vulnerability resides in the WP Media WP Rocket plugin, which is commonly used on production and staging sites. Any user who can access a page rendered by the plugin after an injection can execute attacker‑sourced scripts.

Risk and Exploitability

The CVSS score of 7.2 indicates a medium‑to‑high severity vulnerability. No EPSS data is available, but the lack of an exploit in the KEV database suggests it is not yet widely exploited. Attackers can reach the vector from any network without requiring authentication, simply by sending crafted requests to the rocket_beacon endpoint. Once a script is stored, all subsequent page views trigger execution in the victim’s browser.

Generated by OpenCVE AI on August 28, 2026 at 16:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update WP Rocket to version 3.21.1 or newer, which omits the vulnerable endpoint or applies proper input sanitization.
  • If an update is not yet possible, remove or disable the rocket_beacon endpoint through the plugin’s configuration or by blocking the AJAX URL via web‑application firewall rules.
  • Apply the latest WordPress core and security patches to ensure overall platform resilience and reduce the attack surface.

Generated by OpenCVE AI on August 28, 2026 at 16:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wp Media
Wp Media wp Rocket
Vendors & Products Wordpress
Wordpress wordpress
Wp Media
Wp Media wp Rocket
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 28 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title WP Rocket <= 3.21.0.1 - Unauthenticated Stored Cross-Site Scripting via Picture Source Attributes in rocket_beacon Endpoint
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Wordpress Wordpress
Wp Media Wp Rocket
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-08-28T11:29:28.699Z

Reserved: 2026-04-09T00:33:55.973Z

Link: CVE-2026-5934

cve-icon Vulnrichment

Updated: 2026-08-28T15:58:53.302Z

cve-icon NVD

Status : Received

Published: 2026-08-28T16:18:19.657

Modified: 2026-08-28T16:18:19.657

Link: CVE-2026-5934

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T17:15:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')