Security mailing lists by PureSourceCode

CVE-2026-41238

MEDIUM 6.9CVSS 3.1

DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback

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 tagNameCheck and attributeNameCheck regex values into Object.prototype, causing DOMPurify to allow arbitrary custom elements with arbitrary attributes — including event handlers — through sanitization. Version 3.4.0 fixes the issue.

Published
23 Apr 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-1321CWE-79
Also known as
GHSA-v9jr-rg53-9pgp
Sources
NVDJSONOSV GHSA-v9jr-rg53-9pgpJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm dompurify >= 3.0.1, < 3.4.0 3.4.0

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 23 Apr 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.