Intel

AIKIDO-2026-564705

roots/wordpress is vulnerable to Cross-Site Scripting (XSS)

GHSA-wjwj-p342-9fq7Published Oct 30, 2026
October 30, 2026

60

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

WordPress reads Script Module data by element ID without requiring a script element. A post author can insert another element with the same ID and replace the JSON data consumed by the module. This lets attacker-controlled content influence trusted client-side state and behavior. The fix reads data only from script elements.

How do I fix this?

Upgrade the roots/wordpress package to a patched version.

Who does this affect?

You are affected if you use a vulnerable version and load Script Modules whose data can be shadowed by attacker-controlled post content.

Versions

6.6 - 6.6.10

Fixed in 6.6.11

6.7 - 6.7.10

Fixed in 6.7.11

6.8 - 6.8.11

Fixed in 6.8.12

6.9 - 6.9.10

Fixed in 6.9.11

7.0 - 7.0.7

Fixed in 7.0.8

7.1 - 7.1.3

Fixed in 7.1.4

Background info

roots/wordpress is vulnerable to Cross-Site Scripting (XSS) in versions 6.6 - 6.6.10, 6.7 - 6.7.10, 6.8 - 6.8.11, 6.9 - 6.9.10, 7.0 - 7.0.7 and 7.1 - 7.1.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea