Read the docs

Cross-site scripting in sanitize-html

Priority MEDIUM 60CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

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

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00274 19th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by the CNA and NVD
Fix Fixed sanitize-html: 1.0.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—sanitize-htmlbefore 1.0.31.0.3Patch availableCNA
  • sanitize-html Vendor— Affected before 1.0.3 Fixed in 1.0.3 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*before 1.0.3Vulnerableapostrophecms
  • cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* Versions before 1.0.3 Vulnerable ·apostrophecms

Remediation

  • Fix · CNA sanitize-html Fixed in 1.0.3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2014-125128
  2. 2026-10-03 Alias added: GHSA-389w-f784-rjg3

References

  • TI-2024-14258 Information disclosure in sanitize-html CVSS 3.1MEDIUM 5.3
  • TI-2026-29000 ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements CVSS 3.1MEDIUM 6.1
  • TI-2019-15279 Cross-site scripting in sanitize-html CVSS 3.1MEDIUM 6.1
  • TI-2022-09444 Regular expression denial of service (ReDoS) in sanitize-html CVSS 3.1HIGH 7.5
  • TI-2016-09355 sanitize-html before 1.4.3 has XSS. CVSS 3.1MEDIUM 6.1
  • TI-2021-08273 Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the… CVSS 3.1MEDIUM 5.3
See all 7 →

Sources