Back

MEDIUM

'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS)

Published Sep 8, 2025

Description

'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (`<a>`), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.

Affected products

Remediation

No remediation recorded yet.

References (4)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Checkmarx
Published Sep 8, 2025
Updated Sep 8, 2025
Reserved Sep 5, 2025
CISA Vulnrichment
Updated Sep 8, 2025
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity n/a
Public date n/a