CVE-2026-5934 PUBLISHED

WP Rocket <= 3.21.0.1 - Unauthenticated Stored Cross-Site Scripting via Picture Source Attributes in rocket_beacon Endpoint

Assigner: Wordfence
Reserved: 09.04.2026 Published: 28.08.2026 Updated: 28.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
CVSS Score: 7.2

Product Status

Vendor WP Media
Product WP Rocket
Versions Default: unaffected
  • affected from 0 to 3.21.0.1 (incl.)

Credits

  • Tin Pham (TF1T) finder
  • Trong Pham (dtro) finder
  • Hao Ngo finder

References

Problem Types

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