{"id":"UBUNTU-CVE-2026-41239","details":"DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in version 1.0.10 and prior to version 3.4.0, `SAFE_FOR_TEMPLATES` strips `{{...}}` expressions from untrusted HTML. This works in string mode but not with `RETURN_DOM` or `RETURN_DOM_FRAGMENT`, allowing XSS via template-evaluating frameworks like Vue 2. Version 3.4.0 patches the issue.","modified":"2026-05-20T16:12:58.821476115Z","published":"2026-04-23T16:16:00Z","upstream":["CVE-2026-41239"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41239"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41239"},{"type":"REPORT","url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8"}],"affected":[{"package":{"name":"node-dompurify","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-dompurify?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.0+dfsg-2","2.3.3+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-dompurify","binary_version":"2.3.3+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41239.json"}},{"package":{"name":"node-dompurify","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-dompurify?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1+dfsg+~2.4.0-1","3.0.9+dfsg+~3.0.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-dompurify","binary_version":"3.0.9+dfsg+~3.0.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41239.json"}},{"package":{"name":"node-dompurify","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-dompurify?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.7+dfsg+~3.0.5-1","3.1.7+dfsg+~3.0.5-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-dompurify","binary_version":"3.1.7+dfsg+~3.0.5-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41239.json"}},{"package":{"name":"node-dompurify","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-dompurify?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.7+dfsg+~3.0.5-2","3.3.3+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-dompurify","binary_version":"3.3.3+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41239.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}