{"id":"DHI-jsln-l7co-34yu-26xg","summary":"DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an…","details":"DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit c361baa added an early exit for FORBID_ATTR at line 1214. The same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely. This allows forbidden elements to survive sanitization with their attributes intact. Version 3.4.0 patches the issue.","modified":"2026-11-21T12:30:34.995915726Z","published":"2026-11-11T16:37:28Z","upstream":["CVE-2026-41240"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-jsln-l7co-34yu-26xg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41240"},{"type":"ADVISORY","url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m"},{"type":"FIX","url":"https://github.com/cure53/DOMPurify/commit/c361baa18dbdcb3344a41110f4c48ad85bf48f80"},{"type":"WEB","url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-41240"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h7mw-gpvr-xq4m"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-41240"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-41240"}],"affected":[{"package":{"name":"grist","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/grist"},"versions":["1.7.17-0","1.7.17-1","1.7.17-2","1.7.17-3","1.7.17-4","1.7.17-5","1.7.17-6","1.7.19-2","1.7.19-3","1.7.19-4","1.7.19-5","1.7.19-6","1.7.20-0","1.7.20-10","1.7.20-7","1.7.20-8","1.7.20-9","1.7.21-0","1.7.21-1","1.7.21-2","1.7.21-3","1.7.21-4","1.7.21-5","1.7.21-6","1.7.21-7","1.7.21-8","1.7.21-9","1.7.22-1","1.7.22-10","1.7.22-11","1.7.22-12","1.7.22-13","1.7.22-2","1.7.22-3","1.7.22-4","1.7.22-5","1.7.22-6","1.7.22-7","1.7.22-8","1.7.22-9"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-jsln-l7co-34yu-26xg.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}