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.
Published: 2025-09-08
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2014-9819 '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

Fri, 19 Sep 2025 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*

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'}


Subscriptions

Apostrophecms Sanitize-html
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 : Analyzed

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

Modified: 2025-09-19T15:14:35.680

Link: CVE-2014-125128

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses