CVE-2022-37598

Prototype pollution vulnerability in function DEFNODE in ast.js in mishoo UglifyJS 3.13.2 via the name variable in ast.js

published October 20, 2022

CVSS
—
EPSS
2%
Percentile
80.0
In the wild
Unconfirmed
What it is

⚠️ Prototype pollution might sound fancy, but it’s like letting a guest rearrange your furniture without asking! Imagine inviting someone over and they decide to move your couch to the front yard. You'd be surprised and maybe a bit angry when you find out your living room is now a mess! That's akin to this vulnerability where attackers could tamper with the structure of your code through a simple variable. If exploited, this vulnerability can lead to unexpected behavior in applications, potentially leading to security issues down the line. While the vendor deems this report invalid, any overlooked flaw could still open the door for chaos in larger systems.

Put simply

Imagine inviting someone over and they decide to move your couch to the front yard. You'd be surprised and maybe a bit angry when you find out your living room is now a mess! That's akin to this vulnerability where attackers could tamper with the structure of your code through a simple variable. This prototype pollution vulnerability exists in the DEFNODE function of ast.js in UglifyJS 3.13.2, allowing attackers to manipulate object prototypes through the 'name' variable without adequate checks.

What to do

If exploited, this vulnerability can lead to unexpected behavior in applications, potentially leading to security issues down the line. While the vendor deems this report invalid, any overlooked flaw could still open the door for chaos in larger systems. To mitigate this risk, consider reviewing your version of UglifyJS and ensure it’s updated beyond 3.13.2. Even if the vendor considers it invalid, better safe than sorry—implement checks to validate inputs and sanitize any variables used within your code. 🛡️ You’ve got this! By taking these steps, you’ll keep your environment safe and sound. Keep being the security hero! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01943 · 80.0th percentile
Published
2022-10-20T00:00Z
EPSS history
Timeline
  • 20 OCT 00:00Z
    Prototype pollution vulnerability in function DEFNODE in ast.js in mishoo UglifyJS 3.13.2 via the name variable in ast.js
    cvelistv5