Skip to content

dompurify-2.4.7.tgz: 18 vulnerabilities (highest severity is: 9.3) #3

Description

@mend-for-github-com
Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (dompurify version) Remediation Possible**
CVE-2024-47875 Critical 9.3 dompurify-2.4.7.tgz Direct 2.5.0
CVE-2026-41239 High 7.6 dompurify-2.4.7.tgz Direct 3.4.0
CVE-2024-45801 Medium 6.9 dompurify-2.4.7.tgz Direct 2.5.4
CVE-2026-49978 Medium 6.3 dompurify-2.4.7.tgz Direct https://github.com/cure53/DOMPurify.git - 3.4.7
CVE-2026-41240 Medium 6.0 dompurify-2.4.7.tgz Direct 3.4.0
CVE-2026-65914 Medium 5.3 dompurify-2.4.7.tgz Direct 3.3.2
CVE-2026-65902 Medium 5.3 dompurify-2.4.7.tgz Direct 3.4.7
CVE-2026-49459 Medium 5.3 dompurify-2.4.7.tgz Direct https://github.com/cure53/DOMPurify.git - 3.4.6,dompurify - 3.4.6
CVE-2026-49458 Medium 5.3 dompurify-2.4.7.tgz Direct https://github.com/cure53/DOMPurify.git - 3.4.6
CVE-2026-65913 Medium 5.1 dompurify-2.4.7.tgz Direct 3.3.2
CVE-2026-65912 Medium 5.1 dompurify-2.4.7.tgz Direct 3.3.2
CVE-2026-65911 Medium 5.1 dompurify-2.4.7.tgz Direct 3.4.0
CVE-2026-65903 Medium 5.1 dompurify-2.4.7.tgz Direct 3.4.0
CVE-2026-65901 Medium 5.1 dompurify-2.4.7.tgz Direct 3.4.7
CVE-2026-65899 Medium 5.1 dompurify-2.4.7.tgz Direct dompurify - 3.4.9,https://github.com/cure53/DOMPurify.git - 3.4.9
CVE-2026-65898 Medium 5.1 dompurify-2.4.7.tgz Direct 3.4.11
CVE-2026-65904 Low 2.3 dompurify-2.4.7.tgz Direct N/A
CVE-2025-26791 Low 2.1 dompurify-2.4.7.tgz Direct dompurify - 3.2.4

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-47875

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.

Publish Date: 2024-10-11

URL: CVE-2024-47875

CVSS 4 Score Details (9.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-47875

Release Date: 2024-10-11

Fix Resolution: 2.5.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-41239

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Summary | Field | Value | |:------|:------| | Severity | Medium | | Affected | DOMPurify "main" at ""883ac15"" (https://github.com/cure53/DOMPurify/tree/883ac15d47f907cb1a3b5a152fe90c4d8c10f9e6), introduced in v1.0.10 (""7fc196db"" (cure53/DOMPurify@7fc196d)) | "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. Technical Details DOMPurify strips template expressions in two passes: 1. Per-node — each text node is checked during the tree walk (""purify.ts:1179-1191"" (https://github.com/cure53/DOMPurify/blob/883ac15d47f907cb1a3b5a152fe90c4d8c10f9e6/src/purify.ts#L1179-L1191)): // pass #⁠1: runs on every text node during tree walk if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) { content = currentNode.textContent; content = content.replace(MUSTACHE_EXPR, ' '); // {{...}} -> ' ' content = content.replace(ERB_EXPR, ' '); // <%...%> -> ' ' content = content.replace(TMPLIT_EXPR, ' '); // ${... -> ' ' currentNode.textContent = content; } 2. Final string scrub — after serialization, the full HTML string is scrubbed again (""purify.ts:1679-1683"" (https://github.com/cure53/DOMPurify/blob/883ac15d47f907cb1a3b5a152fe90c4d8c10f9e6/src/purify.ts#L1679-L1683)). This is the safety net that catches expressions that only form after the DOM settles. The "RETURN_DOM" path returns before pass #⁠2 ever runs (""purify.ts:1637-1661"" (https://github.com/cure53/DOMPurify/blob/883ac15d47f907cb1a3b5a152fe90c4d8c10f9e6/src/purify.ts#L1637-L1661)): // purify.ts (simplified) if (RETURN_DOM) { // ... build returnNode ... return returnNode; // <-- exits here, pass #⁠2 never runs } // pass #⁠2: only reached by string-mode callers if (SAFE_FOR_TEMPLATES) { serializedHTML = serializedHTML.replace(MUSTACHE_EXPR, ' '); } return serializedHTML; The payload "{{constructor.constructor('alert(1)')()}}" exploits this: 3. Parser creates: "TEXT("{")" → "" → "TEXT("{payload}")" → "" → "TEXT("}")" — no single node contains "{{", so pass #⁠1 misses it 4. "" is not allowed, so DOMPurify removes it but keeps surrounding text 5. The three text nodes are now adjacent — ".outerHTML" reads them as "{{payload}}", which Vue 2 compiles and executes
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2026-04-23

URL: CVE-2026-41239

CVSS 4 Score Details (7.6)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-crv5-9vww-q3g8

Release Date: 2026-04-22

Fix Resolution: 3.4.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-45801

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It has been discovered that malicious HTML using special nesting techniques can bypass the depth checking added to DOMPurify in recent releases. It was also possible to use Prototype Pollution to weaken the depth check. This renders dompurify unable to avoid cross site scripting (XSS) attacks. This issue has been addressed in versions 2.5.4 and 3.1.3 of DOMPurify. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Publish Date: 2024-09-16

URL: CVE-2024-45801

CVSS 4 Score Details (6.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-mmhx-hmjr-r674

Release Date: 2024-09-16

Fix Resolution: 2.5.4

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-49978

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 sanitized template. This issue is fixed in version 3.4.7.

Publish Date: 2026-07-14

URL: CVE-2026-49978

CVSS 4 Score Details (6.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-06-15

Fix Resolution: https://github.com/cure53/DOMPurify.git - 3.4.7

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-41240

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

There is an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit "c361baa" (cure53/DOMPurify@c361baa) added an early exit for FORBID_ATTR at line 1214: /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it / if (FORBID_ATTR[lcName]) { return false; } 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: if ( !( EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName) // true -> short-circuits ) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) // never evaluated ) { This allows forbidden elements to survive sanitization with their attributes intact.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2026-04-23

URL: CVE-2026-41240

CVSS 4 Score Details (6.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-h7mw-gpvr-xq4m

Release Date: 2026-04-23

Fix Resolution: 3.4.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65914

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 with event handlers to execute JavaScript.

Publish Date: 2026-07-23

URL: CVE-2026-65914

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.3.2

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65902

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.

Publish Date: 2026-07-23

URL: CVE-2026-65902

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.4.7

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-49459

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 _sanitizeAttributes returned early. This issue is fixed in version 3.4.6.

Publish Date: 2026-07-14

URL: CVE-2026-49459

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-r47g-fvhr-h676

Release Date: 2026-06-15

Fix Resolution: https://github.com/cure53/DOMPurify.git - 3.4.6,dompurify - 3.4.6

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-49458

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 clobber, template-content, and shadow-DOM sanitization branches so executable markup could survive. This issue is fixed in version 3.4.6.

Publish Date: 2026-07-14

URL: CVE-2026-49458

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-06-15

Fix Resolution: https://github.com/cure53/DOMPurify.git - 3.4.6

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65913

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 when sanitized markup is rendered.

Publish Date: 2026-07-23

URL: CVE-2026-65913

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.3.2

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65912

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 execute as DOM-based XSS when the link is activated.

Publish Date: 2026-07-23

URL: CVE-2026-65912

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.3.2

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65911

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

In DOMPurify through 3.3.3, function predicates supplied via ADD_ATTR or ADD_TAGS to DOMPurify.sanitize() persist in internal state (EXTRA_ELEMENT_HANDLING) across subsequent sanitize() calls on the same instance. If a later call on the same instance provides ADD_ATTR or ADD_TAGS as an array rather than a function, the previously set function handler is neither cleared nor overwritten, so it continues to approve attacker-controlled attributes or tags. This can allow dangerous event-handler attributes or forbidden tags (bypassing FORBID_TAGS) to survive sanitization, resulting in cross-site scripting. The vendor (Cure53) considers this an edge case outside DOMPurify's threat model; the referenced advisory lists 3.4.0 as the patched version.

Publish Date: 2026-07-23

URL: CVE-2026-65911

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.4.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65903

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-07-23

URL: CVE-2026-65903

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.4.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65901

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

DOMPurify through 3.4.6 contains a cross-site scripting vulnerability in IN_PLACE mode that trusts attacker-controlled nodeName on live non-form nodes. Attackers can supply hostile live DOM objects with real script children whose observable nodeName is clobbered to appear as allowed elements, causing scripts to execute when the sanitized tree is inserted into a live document.

Publish Date: 2026-07-23

URL: CVE-2026-65901

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.4.7

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65899

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.

Publish Date: 2026-07-23

URL: CVE-2026-65899

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: dompurify - 3.4.9,https://github.com/cure53/DOMPurify.git - 3.4.9

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65898

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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 polluted allowlist and executes event handlers as stored XSS.

Publish Date: 2026-07-23

URL: CVE-2026-65898

CVSS 4 Score Details (5.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: 3.4.11

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-65904

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

DOMPurify through 3.3.3 fails to sanitize DOM elements passed via IN_PLACE mode when the element originates from a different window/realm (e.g., an iframe's contentDocument). A cross-realm instanceof check in the private _isNode() function returns false for foreign-realm nodes, causing DOMPurify to stringify the element (yielding '[object HTMLDivElement]'), silently reset IN_PLACE to false, and return the unsanitized element unchanged with any XSS payloads intact.

Publish Date: 2026-07-23

URL: CVE-2026-65904

CVSS 4 Score Details (2.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

CVE-2025-26791

Vulnerable Library - dompurify-2.4.7.tgz

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Library home page: https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/dompurify/package.json

Dependency Hierarchy:

  • dompurify-2.4.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

DOMPurify before 3.2.4 has an incorrect template literal regular expression, sometimes leading to mutation cross-site scripting (mXSS).

Publish Date: 2025-02-14

URL: CVE-2025-26791

CVSS 4 Score Details (2.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2025-26791

Release Date: 2025-02-14

Fix Resolution: dompurify - 3.2.4

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions