{"id":"CVE-2026-53606","published":"2026-06-12T20:50:47Z","modified":"2026-06-15T17:54:23Z","title":"sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data…","vendor":"apostrophecms","product":"sanitize-html","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.11618,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vccv-cmxp-4j9h","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":2.32},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"apostrophecms","affectedVersions":[{"vendor":"apostrophecms","product":"sanitize-html","versions":["< 2.17.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-15T17:54:19.772501Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"sanitize-html","vulnerableRanges":[">=1.18.0, <2.17.5"],"patched":["2.17.5"],"from":["GHSA-vccv-cmxp-4j9h"],"provenance":"source"}],"summary":{"text":"The sanitize-html package from ApostropheCMS, prior to version 2.17.5, only applies its dangerous-scheme check (blocking javascript: and vbscript: URIs) to the href, src and cite attributes by default, leaving other URI-bearing attributes such as action, formaction, data and poster unchecked. An attacker who can supply HTML that the sanitizer processes can get a javascript: URI through one of these unchecked attributes when the application's configuration allows that attribute, which can execute script in the victim's browser and requires that the victim interact with the crafted content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:40Z"},"euvd":{"id":"EUVD-2026-36574","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21501","published":"2024-02-24","fixed":"2.12.1","kev":false},{"cve":"CVE-2026-40186","published":"2026-04-15","fixed":"2.17.3","kev":false},{"cve":"CVE-2026-44990","published":"2026-06-12","fixed":"2.17.4","kev":false,"link":{"from":"CVE-2026-44990","to":"CVE-2026-53606","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:sanitize-html","fromFixed":"2.17.4","toFixed":"2.17.5","daysApart":0},{"kind":"same-code","provenance":"machine","files":["packages/sanitize-html/index.js"],"commits":["https://github.com/apostrophecms/apostrophe/commit/8d4c882b4ed3a7ce802cd87f89f0c1cb7482b8c2","https://github.com/apostrophecms/apostrophe/commit/5a88e9630cbbdde33154ef8abe7557ddf7be418b"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.31,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-53606","published":"2026-06-12","fixed":"2.17.5","kev":false},{"cve":"CVE-2026-63670","published":"2026-08-17","fixed":"2.17.6","kev":false,"link":{"from":"CVE-2026-53606","to":"CVE-2026-63670","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:sanitize-html","fromFixed":"2.17.5","toFixed":"2.17.6","daysApart":66},{"kind":"same-code","provenance":"machine","files":["packages/sanitize-html/index.js"],"commits":["https://github.com/apostrophecms/apostrophe/commit/5a88e9630cbbdde33154ef8abe7557ddf7be418b","https://github.com/apostrophecms/apostrophe/commit/eae1fb2b72ec5d1c27d0977509c6482a0408f725"],"basis":"shared file"}]}},{"cve":"CVE-2026-84371","published":"2026-09-01","fixed":"2.17.7","kev":false},{"cve":"CVE-2026-113654","published":"2026-10-20","fixed":"2.18.0","kev":false}],"package":"npm:sanitize-html"}}