PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-65902 cure53 CVE debrief

The CVE-2026-65902 vulnerability affects DOMPurify, a popular JavaScript library used for sanitizing HTML and preventing XSS attacks. The issue arises from DOMPurify's handling of hooks that mutate the DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets, potentially widening the default allow-lists for the lifetime of the DOMPurify instance. This can lead to security bypass if an attacker payload uses the poisoned tag/attribute name. The vulnerability has a CVSS score of 5.3 and is classified as MEDIUM severity. Developers and administrators using DOMPurify in their applications, especially those handling user-input data, should be aware of this vulnerability and take necessary actions to mitigate it. The CVE record was published on 2026-07-23T14:18:05.453Z and has not been modified since then.

Vendor
cure53
Product
DOMPurify
CVSS
MEDIUM 5.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-23
Original CVE updated
2026-07-28
Advisory published
2026-07-23
Advisory updated
2026-07-28

Who should care

Developers and administrators using DOMPurify in their applications, especially those handling user-input data, should be aware of this vulnerability and take necessary actions to mitigate it. This includes reviewing the library's usage in their applications, assessing the potential impact, and applying patches or mitigations as necessary. Additionally, security teams and vulnerability management teams should be aware of this vulnerability and prioritize its remediation based on the severity and potential impact on their systems and applications.

Technical summary

DOMPurify before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks. 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. The vulnerability can be mitigated by upgrading to DOMPurify version 3.4.7 or later. The issue is a result of the library's design and the way it handles hooks, which can be exploited by attackers to bypass security mechanisms.

Defensive priority

Medium-severity vulnerability in DOMPurify, a popular JavaScript library for sanitizing HTML and preventing XSS attacks. Successful exploitation requires user interaction.

Recommended defensive actions

  • Apply patches: Upgrade DOMPurify to version 3.4.7 or later.
  • Implement compensating controls: Use a Web Application Firewall (WAF) to detect and prevent potential attacks.
  • Inventory and monitor: Check for and monitor usage of affected DOMPurify versions in your applications.
  • Review library usage: Verify if DOMPurify is used in your applications and assess the potential impact of the vulnerability.
  • Asset inventory: Identify systems and applications that use the affected DOMPurify versions.
  • Source tracking: Monitor for any updates or patches from the library maintainers and apply them as necessary.
  • Exposure review: Assess the potential exposure of your systems and applications to this vulnerability.

Evidence notes

The CVE record and NVD entry provide details about the vulnerability. DOMPurify before 3.4.7 is affected by an issue where hooks can mutate allowedTags and allowedAttributes fields, potentially leading to security bypass. Evidence is limited to public sources, and defenders should verify the vulnerability's impact on their systems. Additional verification tasks include reviewing the library's usage in applications and checking for any existing mitigations.

Official resources

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-23T14:18:05.453Z and has not been modified since then.