CVE-2026-41240
published medium CVSS 4.0 · 6.0DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify< 3.4.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cliaarch64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clippc64le | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clis390x | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clix86_64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionaarch64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionppc64le | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completions390x | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionx86_64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionaarch64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionppc64le | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completions390x | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionx86_64 | Advisory build | 3.4.3-1.1 | OPENSUSE-SU-2026:10888-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cure53 | DOMPurify | < 3.4.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-183 CWE-183: Permissive List of Allowed Inputs
- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3Provider assertions
2GitHub_M · cna
DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b0250b66d1769d23a732dac2b529b9c204621d421f6a64f3b8ad8b74ecbfc063
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record