CVE Explorer
CVE-2026-41240
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-183","description":"CWE-183: Permissive List of Allowed Inputs","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"DOMPurify","vendor":"cure53","versions":[{"status":"affected","version":"< 3.4.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-183","description":"CWE-183: Permissive List of Allowed Inputs","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/problemTypes/1/descriptions/0
Source references
4 source assertions{"name":"https://github.com/cure53/DOMPurify/commit/c361baa18dbdcb3344a41110f4c48ad85bf48f80","tags":["x_refsource_MISC"],"url":"https://github.com/cure53/DOMPurify/commit/c361baa18dbdcb3344a41110f4c48ad85bf48f80"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/references/1
{"name":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0","tags":["x_refsource_MISC"],"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/adp/0/references/0
{"name":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m","tags":["x_refsource_CONFIRM"],"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e60930ff7dc2188f2b57fd9e03d150312277c7181be2681eba3aad2ac872a504 · sha256:4488aeb396486ef1… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.