CVE-2024-47875CWE-79

DOMPurify nesting-based mXSS

Critical · published October 11, 2024

CVSS v3.1
10.0
EPSS
1%
Percentile
66.2
In the wild
Unconfirmed
What it is

🚨 A sneaky nesting flaw in DOMPurify could let attackers execute malicious scripts, undermining the very tool meant to keep your web content safe! 🔥 Think of DOMPurify as an ultra-vigilant bouncer at a club, checking IDs and ensuring no troublemakers get in. However, with this vulnerability, a crafty patron could slip in using a fake ID that wasn't fully vetted — a clever trick that could lead to chaos inside! If exploited, this vulnerability could allow attackers to inject and execute malicious scripts in user browsers, compromising the security of your web applications. This means sensitive data could be stolen, users could be manipulated, or even worse — the entire application could be rendered unusable!

Put simply

Think of DOMPurify as an ultra-vigilant bouncer at a club, checking IDs and ensuring no troublemakers get in. However, with this vulnerability, a crafty patron could slip in using a fake ID that wasn't fully vetted — a clever trick that could lead to chaos inside! The flaw in DOMPurify arises from its inadequate handling of nested elements in HTML, leading to a type of cross-site scripting (XSS) called mXSS. This allows attackers to bypass the sanitizer's protections and run their own scripts.

What to do

If exploited, this vulnerability could allow attackers to inject and execute malicious scripts in user browsers, compromising the security of your web applications. This means sensitive data could be stolen, users could be manipulated, or even worse — the entire application could be rendered unusable! Update to DOMPurify versions 2.5.0 or 3.1.3 immediately to close this vulnerability. Also, make sure to review your implementation to ensure other security best practices are in place. Regularly audit your dependencies for vulnerabilities! You've got this! By updating now, you can protect your applications and keep your users safe! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01134 · 66.2th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-10-11T14:59Z
EPSS history
Timeline
  • 11 OCT 14:59Z
    DOMPurify nesting-based mXSS
    cvelistv5