Intel

AIKIDO-2026-478488

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 30, 2026
October 30, 2026

65

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

WordPress PHP and JavaScript block parsers disagree on whitespace allowed in block delimiters. A Contributor or higher-privileged user can craft block markup that is interpreted differently during sanitization and rendering, allowing stored cross-site scripting. The fix makes the PHP parser use the same explicit whitespace characters as the JavaScript parser.

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 render attacker-controlled block markup.

Versions

5.0 - 5.7.20

Fixed in 5.7.21

5.8 - 5.8.18

Fixed in 5.8.19

5.9 - 5.9.19

Fixed in 5.9.20

6.0 - 6.0.17

Fixed in 6.0.18

6.1 - 6.1.15

Fixed in 6.1.16

6.2 - 6.2.14

Fixed in 6.2.15

6.3 - 6.3.13

Fixed in 6.3.14

6.4 - 6.4.13

Fixed in 6.4.14

6.5 - 6.5.13

Fixed in 6.5.14

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 5.0 - 5.7.20, 5.8 - 5.8.18, 5.9 - 5.9.19, 6.0 - 6.0.17, 6.1 - 6.1.15, 6.2 - 6.2.14, 6.3 - 6.3.13, 6.4 - 6.4.13, 6.5 - 6.5.13, 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