๐Ÿ” CVE Alert

CVE-2026-53606

MEDIUM 5.4

sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data, poster, and background attributes

CVSS Score
5.4
EPSS Score
0.0%
EPSS Percentile
0th

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Versions of sanitize-html prior to 2.17.5 use `allowedSchemesAppliedToAttributes` (default: `['href', 'src', 'cite']`) to gate the `naughtyHref()` function that blocks dangerous URI schemes like `javascript:` and `vbscript:`. The HTML specification defines 10+ attributes that accept URIs (`action`, `formaction`, `data`, `poster`, `background`, `ping`, `xlink:href`, `dynsrc`, `lowsrc`), but none of these are included in the default gate list. When a developer allows any of these attributes in their configuration, `javascript:` URIs pass through completely unmodified, enabling XSS. Version 2.17.5 patches the issue.

CWE CWE-79
Vendor apostrophecms
Product sanitize-html
Published Jun 12, 2026
Stay Ahead of the Next One

Get instant alerts for apostrophecms sanitize-html

Be the first to know when new medium vulnerabilities affecting apostrophecms sanitize-html are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

apostrophecms / sanitize-html
< 2.17.5

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vccv-cmxp-4j9h