CVE-2026-53606
MEDIUM 5.4CVSS 3.1sanitize-html has incomplete URI scheme validation in that allows javascript: URIs through action, formaction, data, poster, and background attributes
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.
- Published
- 12 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-vccv-cmxp-4j9h
- Sources
- NVDJSONOSV GHSA-vccv-cmxp-4j9hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | sanitize-html | >= 1.18.0, < 2.17.5 | 2.17.5 |
References
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vccv-cmxp-4j9h · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-53606 · ADVISORY
- https://github.com/apostrophecms/apostrophe/pull/5464 · WEB
- https://github.com/apostrophecms/apostrophe/commit/5a88e9630cbbdde33154ef8abe7557ddf7be418b · WEB
- https://github.com/apostrophecms/apostrophe · PACKAGE
- https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.17.5 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 12 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Jul 2026)