CVE-2024-48910CWE-1321

DOMPurify vulnerable to tampering by prototype polution

Critical · published October 31, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
66.7
In the wild
Unconfirmed
What it is

🚨 A sneaky prototype pollution bug in DOMPurify is like a mischievous ghost rearranging your furniture when you're not looking! 🔥 Think of DOMPurify as a trusted housekeeper keeping your digital space clean. But with this flaw, it's as if someone sneaked in and whispered to the housekeeper to change the cleaning directives, potentially leading to a chaotic mess instead of a spotless home. An attacker could exploit this vulnerability to manipulate the underlying prototype of objects, allowing them to alter core behaviors of the application. This could lead to devastating consequences, such as unauthorized access or data manipulation, compromising the integrity of your application. Imagine your housekeeper suddenly allowing guests to rearrange the entire house without your permission!

Put simply

Think of DOMPurify as a trusted housekeeper keeping your digital space clean. But with this flaw, it's as if someone sneaked in and whispered to the housekeeper to change the cleaning directives, potentially leading to a chaotic mess instead of a spotless home. This prototype pollution vulnerability in DOMPurify allows an attacker to inject their own properties into JavaScript objects, resulting in unexpected behavior during sanitization processes.

What to do

An attacker could exploit this vulnerability to manipulate the underlying prototype of objects, allowing them to alter core behaviors of the application. This could lead to devastating consequences, such as unauthorized access or data manipulation, compromising the integrity of your application. Imagine your housekeeper suddenly allowing guests to rearrange the entire house without your permission! Immediately upgrade DOMPurify to version 2.4.2 to patch this vulnerability. Review your use of DOMPurify to ensure it's implemented correctly, and consider auditing your application for any unexpected behaviors that could arise from this flaw. Don't take chances with your security! You've got this! Following these steps will ensure your environment stays clean and secure. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01151 · 66.7th percentile
Weakness
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Published
2024-10-31T14:22Z
EPSS history
Timeline
  • 31 OCT 14:22Z
    DOMPurify vulnerable to tampering by prototype polution
    cvelistv5