Cross-site scripting in WordPress - #VU168259

 

Cross-site scripting in WordPress - #VU168259

Published: November 19, 2026


Vulnerability identifier: #VU168259
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script in the browser of a visitor viewing an affected post.

The vulnerability exists due to improper neutralization of comment shortcode attributes in WordPress when the Comments or Latest Comments block renders markup decoded after comment sanitization under the post allowlist. A remote attacker can submit a malicious comment to execute script when a visitor views the rendered comment.


Affected software

WordPress

Remediation

Install security update from vendor's website.

WordPress - addressed in versions 4.7.40, 4.8.35, 4.9.36, 5.0.32, 5.1.29, 5.2.31, 5.3.28, 5.4.26, 5.5.25, 5.6.24, 5.7.22, 5.8.20, 5.9.21, 6.0.19, 6.1.17, 6.2.16, 6.3.15, 6.4.15, 6.5.15, 6.6.12, 6.7.12, 6.8.13, 6.9.12, 7.0.9, 7.1.5

External References

Related Security Bulletins