cbcvebase.

Cure53 Dompurify vulnerabilities

29 known vulnerabilities affecting cure53/dompurify.

Total CVEs
29
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL1HIGH3MEDIUM25

Vulnerabilities

Page 1 of 2
CVE-2024-48910P3CRITICALCVSS 9.8fixed in 2.4.22024-10-31
CVE-2024-48910 [CRITICAL] CWE-1321 CVE-2024-48910: DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify was vulnerable to prototype pollution. This vulnerability is fixed in 2.4.2.
ghsanvdosv
CVE-2025-48050P3HIGHCVSS 7.5≤ 3.2.52025-05-15
CVE-2025-48050 [HIGH] CWE-24 CVE-2025-48050: In DOMPurify through 3.2.5 before 6bc6d60, scripts/server.js does not ensure that a pathname is loca In DOMPurify through 3.2.5 before 6bc6d60, scripts/server.js does not ensure that a pathname is located under the current working directory. NOTE: the Supplier disputes the significance of this report because the "Uncontrolled data used in path expression" occurs "in a development helper script which starts a local web server if needed and must be manu
nvd
CVE-2026-65898P3HIGHCVSS 7.2fixed in 3.4.112026-07-23
CVE-2026-65898 [HIGH] CWE-79 CVE-2026-65898: DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an u DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the pollu
nvd
CVE-2026-47423P3HIGHCVSS 8.2v3.4.4v>= 3.4.4, < 3.4.52026-07-14
CVE-2026-47423 [HIGH] CWE-79 CVE-2026-47423: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. In 3.4.4, DOMPurif DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. In 3.4.4, DOMPurify allowed selectedcontent by default, allowing browsers to re-clone an XSS payload after sanitization so that unsanitized markup inside is returned. This issue is fixed in version 3.4.5.
ghsanvd
CVE-2026-41238P4MEDIUMCVSS 6.9v>= 3.0.1, < 3.4.02026-04-23
CVE-2026-41238 [MEDIUM] CWE-79 CVE-2026-41238: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions 3.0.1 thr DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions 3.0.1 through 3.3.3 are vulnerable to a prototype pollution-based XSS bypass. When an application uses `DOMPurify.sanitize()` with the default configuration (no `CUSTOM_ELEMENT_HANDLING` option), a prior prototype pollution gadget can inject permissive `tagName
ghsanvd
CVE-2026-41239P4MEDIUMCVSS 6.8v>= 1.0.10, < 3.4.02026-04-23
CVE-2026-41239 [MEDIUM] CWE-79 CVE-2026-41239: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in versio 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. Versio
ghsanvd
CVE-2026-49459P4MEDIUMCVSS 6.1fixed in 3.4.62026-07-14
CVE-2026-49459 [MEDIUM] CWE-79 CVE-2026-49459: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DO DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DOMPurify.sanitize(root, { IN_PLACE: true }) could preserve event-handler attributes on an attacker-controlled root when a descendant name clobbered properties checked by _isClobbered, because _forceRemove no-opped on the parent-less root and _sanitizeAt
ghsanvd
CVE-2026-65902P4MEDIUMCVSS 6.1fixed in 3.4.72026-07-23
CVE-2026-65902 [MEDIUM] CWE-501 CVE-2026-65902: DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEF DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that
nvd
CVE-2026-65912P4MEDIUMCVSS 6.1fixed in 3.3.22026-07-23
CVE-2026-65912 [MEDIUM] CWE-79 CVE-2026-65912: DOMPurify before 3.3.2 contains a URI validation bypass vulnerability when ADD_ATTR is provided as a 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 e
nvd
CVE-2020-26870P4MEDIUMCVSS 6.1fixed in 2.0.172020-10-07
CVE-2020-26870 [MEDIUM] CWE-79 CVE-2020-26870: Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.
ghsanvdosv
CVE-2026-65900P4MEDIUMCVSS 6.1≥ 3.0.0, < 3.4.82026-07-23
CVE-2026-65900 [MEDIUM] CWE-79 CVE-2026-65900: DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions (e.g. ${evil}, {{evil}}, ) inside element content. The final normalization/scrub pass (_scrubTemplateExpressions) uses a NodeIterator and node.normalize
nvd
CVE-2026-65899P4MEDIUMCVSS 6.1fixed in 3.4.92026-07-23
CVE-2026-65899 [MEDIUM] CWE-693 CVE-2026-65899: DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) poli
nvd
CVE-2026-65903P4MEDIUMCVSS 6.1fixed in 3.4.02026-07-23
CVE-2026-65903 [MEDIUM] CWE-697 CVE-2026-65903: DOMPurify before 3.4.0 contains a logic error in the ADD_TAGS function where short-circuit evaluatio DOMPurify before 3.4.0 contains a logic error in the ADD_TAGS function where short-circuit evaluation allows forbidden tags to bypass FORBID_TAGS restrictions. Attackers can craft input containing tags listed in FORBID_TAGS that are also added via ADD_TAGS function, causing them to be retained in sanitized output.
nvd
CVE-2026-65913P4MEDIUMCVSS 6.1fixed in 3.3.22026-07-23
CVE-2026-65913 [MEDIUM] CWE-1321 CVE-2026-65913: DOMPurify before 3.3.2 contains a prototype pollution vulnerability in USE_PROFILES mode that allows DOMPurify before 3.3.2 contains a prototype pollution vulnerability in USE_PROFILES mode that allows attackers to bypass attribute filtering by polluting Array.prototype properties. Attackers can set Array.prototype properties like onclick to true, causing DOMPurify to accept event handlers as allowlisted attributes and resulting in DOM-based XSS w
nvd
CVE-2026-66010P4MEDIUMCVSS 6.1fixed in 3.4.122026-07-24
CVE-2026-66010 [MEDIUM] CWE-79 CVE-2026-66010: DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.
nvd
CVE-2026-65914P4MEDIUMCVSS 5.3fixed in 3.3.22026-07-23
CVE-2026-65914 [MEDIUM] CWE-79 CVE-2026-65914: DOMPurify before 3.3.2 contains a mutation-XSS vulnerability when sanitized HTML is reinserted into DOMPurify before 3.3.2 contains a mutation-XSS vulnerability when sanitized HTML is reinserted into special parsing contexts using innerHTML with wrappers like script, xmp, iframe, noembed, noframes, or noscript. Attackers can craft payloads with closing sequences that break out of the wrapper context during reparsing, reactivating dangerous markup wi
nvd
CVE-2026-49458P4MEDIUMCVSS 6.1fixed in 3.4.62026-07-14
CVE-2026-49458 [MEDIUM] CWE-79 CVE-2026-49458: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DO DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DOMPurify.sanitize(node, { IN_PLACE: true }) accepted same-origin foreign-realm DOM nodes while follow-on checks used parent-realm constructors, causing instanceof checks for forms, named node maps, document fragments, and elements to fail and skip clobb
ghsanvd
CVE-2026-0540P4MEDIUMCVSS 6.1≥ 2.5.3, ≤ 2.5.8≥ 3.1.3, ≤ 3.3.12026-03-03
CVE-2026-0540 [MEDIUM] CWE-79 CVE-2026-0540: DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like in attribute values to e
ghsanvdosv
CVE-2026-49978P4MEDIUMCVSS 6.1fixed in 3.4.7fixed in 3.4.62026-07-14
CVE-2026-49978 [MEDIUM] CWE-79 CVE-2026-49978: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DO DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside .content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the
ghsanvd
CVE-2026-41240P4MEDIUMCVSS 6.1fixed in 3.4.02026-04-23
CVE-2026-41240 [MEDIUM] CWE-79 CVE-2026-41240: DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 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_EL
ghsanvd
Cure53 Dompurify vulnerabilities | cvebase