Appsecure logo

CVE-2024-45801: High Vulnerability in cure53 DOMPurify

High-severity vulnerability in cure53 DOMPurify allows attackers to bypass XSS sanitization. Immediate upgrade to versions 2.5.4 or 3.1.3 is advised.

HIGHCVSS 7.3 · Published September 16, 2024

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

A recently discovered vulnerability in cure53's DOMPurify, classified as high severity with a CVSS score of 7.3, poses significant risks to web applications using this XSS sanitizer. This vulnerability allows malicious actors to bypass critical depth checking mechanisms that were implemented in recent versions of DOMPurify. As a result, attackers can exploit this flaw to execute cross-site scripting (XSS) attacks, which can compromise user data and application integrity.

The vulnerability arises from the ability to leverage prototype pollution techniques, which weaken the depth checks intended to prevent such exploits. Given the widespread use of DOMPurify in various applications, the potential impact is extensive. Organizations utilizing this library must take immediate action to mitigate risks associated with this vulnerability.

Notably, there are currently no known workarounds for this vulnerability, making it imperative for organizations to upgrade to the patched versions 2.5.4 or 3.1.3 of DOMPurify. The urgency of this matter cannot be overstated as the potential for XSS attacks could lead to severe consequences, including data breaches and loss of user trust.

In summary, organizations using DOMPurify should prioritize patching immediately to safeguard their applications against this high-severity vulnerability.

Vulnerability Details

The vulnerability, identified as CVE-2024-45801, affects the DOMPurify library, which is designed to sanitize HTML, MathML, and SVG content. The flaw allows certain malicious HTML inputs to bypass the library's depth checks, enabling potential XSS attacks.

The CVSS score for this vulnerability is 7.3, reflecting a high severity level. The criticality arises from the ease of exploitation and the potential impact on confidentiality, integrity, and availability of the affected systems.

CWE classifications associated with this vulnerability include CWE-1333 and CWE-1321, indicating issues related to improper input validation and prototype pollution.

The issue was published on September 16, 2024, and it has been addressed in versions 2.5.4 and 3.1.3 of the DOMPurify library. All users are urged to upgrade to these versions to mitigate the risk.

Technical Analysis

The root cause of the vulnerability lies in the implementation of depth checking within DOMPurify. The attempt to filter out potentially harmful nested structures in HTML content was compromised by a prototype pollution vulnerability. This allowed attackers to manipulate the depth check logic, ultimately bypassing the intended security measures.

The attack vector for exploiting this vulnerability is primarily through network interactions. Attackers can deliver malicious payloads via web applications that utilize DOMPurify for sanitization, making it accessible without requiring physical access to the target systems.

The complexity of exploiting this vulnerability is low, as it does not require elevated privileges or user interaction. This further emphasizes the need for immediate remediation, as the threat landscape is increasingly hostile.

The confidentiality, integrity, and availability impacts of this vulnerability are assessed to be low, but the potential for cross-site scripting attacks can lead to significant exploitation scenarios, including session hijacking and data theft.

Risk & Impact Analysis

The real-world deployment risk associated with CVE-2024-45801 is significant, particularly for organizations relying on DOMPurify for sanitizing user-generated content. The ability to bypass XSS protections opens the door to various attack vectors that can severely compromise application security.

For organizations, this vulnerability highlights the importance of maintaining up-to-date libraries and frameworks, as outdated components can introduce critical security weaknesses. The blast radius for this vulnerability is broad, affecting any application that integrates the flawed versions of DOMPurify.

Given the high severity of this vulnerability and the fact that it has not been included in the Known Exploit Vulnerability (KEV) catalog, organizations must assess their exposure and prioritize remediation actions accordingly.

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The following versions of DOMPurify are affected by this vulnerability: all versions prior to 2.5.4 and those starting from 3.0.0 up to 3.1.3. Users are strongly advised to upgrade to the latest versions to mitigate risks.

Mitigation & Remediation

Organizations should upgrade to DOMPurify versions 2.5.4 or 3.1.3 to remediate this vulnerability. If upgrading is not immediately feasible, organizations should implement monitoring for suspicious behavior associated with XSS attacks and review application logic to ensure it adheres to best practices for input sanitization.

For further security validation, organizations should consider integrating penetration testing services to identify potential weaknesses in their applications.

Detection Guidance

To detect potential exploitation of this vulnerability, organizations should monitor logs for any unexpected input patterns and validate that sanitization processes are functioning as intended. Behavioral anomalies in user interactions and network traffic indicative of XSS attempts should also be closely analyzed.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2024-45801 highlights the persistent challenges faced by web application developers in maintaining robust security against XSS vulnerabilities. This incident serves as a reminder of the importance of regular library updates and the need for comprehensive security assessments.

Security teams should remain vigilant and proactive in identifying patterns related to DOM-based vulnerabilities. For further insights on improving application security, organizations can explore our resources on penetration testing methodology and effective vulnerability management programs.

Additionally, for organizations utilizing cloud services, reviewing our guide on cloud security assessments can provide valuable insights into securing web applications against similar vulnerabilities.

Finally, organizations should consider enhancing their security posture through vulnerability management programs to continuously monitor and address potential threats.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.