PT-2026-48990 · Npm · Sanitize-Html
CVE-2026-53606
·
Published
2026-06-12
·
Updated
2026-07-31
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
sanitize-html versions prior to 2.17.5
Description
The software uses the
allowedSchemesAppliedToAttributes variable to control the naughtyHref() function, which is designed to block dangerous URI schemes such as javascript: and vbscript:. However, several attributes that accept URIs—including action, formaction, data, poster, background, ping, xlink:href, dynsrc, and lowsrc—are missing from the default gate list. If a developer enables any of these attributes in the configuration, javascript: URIs are not modified, leading to Cross-Site Scripting (XSS), a technique where malicious scripts are injected into trusted websites.Recommendations
Update to version 2.17.5.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Sanitize-Html