{"id":"CVE-2026-65912","aliases":["CVE-2026-65912","GHSA-cjmm-f4jc-qw8r"],"related":[],"kind":"vulnerability","state":"published","title":"DOMPurify before 3.3.2 URI Validation Bypass via ADD_ATTR","summary":"DOMPurify before 3.3.2 contains a URI validation bypass vulnerability when ADD_ATTR is provided as a predicate function via EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can supply a predicate that accepts specific attribute and tag combinations to bypass URI-safe validation, allowing unsafe protocols like javascript: to survive sanitization and execute as DOM-based XSS when the link is activated.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"DOMPurify before 3.3.2 contains a URI validation bypass vulnerability when ADD_ATTR is provided as a predicate function via EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can supply a predicate that accepts specific attribute and tag combinations to bypass URI-safe validation, allowing unsafe protocols like javascript: to survive sanitization and execute as DOM-based XSS when the link is activated.","source":"cvelist"},{"lang":"en","text":"## Summary\nDOMPurify allows `ADD_ATTR` to be provided as a predicate function via `EXTRA_ELEMENT_HANDLING.attributeCheck`. When the predicate returns `true`, `_isValidAttribute` short-circuits the attribute check before URI-safe validation runs. An attacker who supplies a predicate that accepts specific attribute/tag combinations can then sanitize input such as `<a href=\"javascript:alert(document.domain)\">` and have the `javascript:` URL survive, because URI validation is skipped for that attribute while other checks still pass. The provided PoC accepts `href` for anchors and then triggers a click inside an iframe, showing that the sanitized payload executes despite the protocol bypass.\n\n## Impact\nPredicate-based allowlisting bypasses DOMPurify's URI validation, allowing unsafe protocols such as `javascript:` to reach the DOM and execute whenever the link is activated, resulting in DOM-based XSS.\n\n## Credits\nIdentified by Cantina’s Apex (https://www.cantina.security).","format":"markdown","source":"ghsa"},{"lang":"es","text":"DOMPurify anterior a la versión 3.3.2 contiene una vulnerabilidad de omisión de validación de URI cuando ADD_ATTR se proporciona como una función predicado a través de EXTRA_ELEMENT_HANDLING.attributeCheck. Los atacantes pueden proporcionar un predicado que acepta combinaciones específicas de atributos y etiquetas para omitir la validación de URI segura, permitiendo que protocolos inseguros como javascript_disabled: sobrevivan a la sanitización y se ejecuten como XSS basado en DOM cuando el enlace se activa.","source":"nvd"}],"published":"2026-04-03T03:46:07.000Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-79","CWE-183"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.3.2","status":"affected"},{"type":"semver","version":"3.3.2","status":"unaffected"}],"vendor":"cure53","product":"DOMPurify","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"npm","package":"dompurify","purl":"pkg:npm/dompurify","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.2"}],"vendor":"cure53","product":"dompurify","cpe":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-cjmm-f4jc-qw8r","tags":["third-party-advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-uri-validation-bypass-via-add-attr","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cure53/DOMPurify","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.3.2","tags":["web"],"sources":["ghsa"]}],"credits":["christos-eth"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-23T15:46:00.253Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65912","url":"https://www.cve.org/CVERecord?id=CVE-2026-65912","licence":"CVE Terms of Use","modified":"2026-07-23T15:46:09.055Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cjmm-f4jc-qw8r","url":"https://github.com/advisories/GHSA-cjmm-f4jc-qw8r","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:43.891Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65912","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65912","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:29.930Z","epss":{"score":0.00185,"percentile":0.08438,"date":"2026-12-01T12:00:22.000Z"}}