'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.
History

Mon, 08 Sep 2025 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Apostrophecms
Apostrophecms sanitize-html
Vendors & Products Apostrophecms
Apostrophecms sanitize-html

Mon, 08 Sep 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 08 Sep 2025 10:30:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Checkmarx

Published:

Updated: 2025-09-08T13:43:33.555Z

Reserved: 2025-09-05T16:03:10.884Z

Link: CVE-2014-125128

cve-icon Vulnrichment

Updated: 2025-09-08T13:43:29.203Z

cve-icon NVD

Status : Received

Published: 2025-09-08T11:15:30.063

Modified: 2025-09-08T11:15:30.063

Link: CVE-2014-125128

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2025-09-08T15:17:25Z