CVE-2024-45801: Tampering by prototype polution in DOMPurify

Published Sep 16, 2024
·
Updated

DOMPurify could allow a remote attacker to execute arbitrary code on the system, caused by a prototype pollution flaw in depth check. By adding or modifying properties of Object.prototype using a proto or constructor payload, an attacker could exploit this vulnerability to execute arbitrary code or cause a denial of service condition on the system.

Other sources

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.

NVD

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 XSS attack.

Fixed by https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21 (3.x branch) and https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc (2.x branch).

GitHub

Affected Software

5 affected componentsFixes available
npm/dompurify>=3.0.0<3.1.3
3.1.3
npm/dompurify<2.5.4
2.5.4
Cure53 DOMPurify<2.5.4
Cure53 DOMPurify>=3.0.0<3.1.3
IBM Security QRadar EDR<=3.12 - 3.12.23

Event History

Sep 16, 2024
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyAffected Software
Data Sourced
via Red Hat·07:20 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·08:34 PM
Feb 11, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-45801?

CVE-2024-45801 is considered a high severity vulnerability due to its potential for XSS exploitation.

2

How do I fix CVE-2024-45801?

To fix CVE-2024-45801, update DOMPurify to version 3.1.3 or later, or to version 2.5.4 if using an earlier version.

3

What is the impact of CVE-2024-45801?

CVE-2024-45801 allows attackers to bypass depth checking, leading to potential XSS attacks.

4

Who is affected by CVE-2024-45801?

CVE-2024-45801 affects users of DOMPurify versions between 3.0.0 and 3.1.3 and those using versions up to 2.5.4.

5

What is DOMPurify in relation to CVE-2024-45801?

DOMPurify is an XSS sanitizer for HTML, MathML, and SVG that is affected by CVE-2024-45801 due to a vulnerability in its nesting depth mechanisms.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203