CVE-2022-37621

Prototype pollution vulnerability in function resolveShims in resolve-shims.js in thlorenz browserify-shim 3.8.15 via the fullPath variable in resolve-shims.js

Critical · published October 28, 2022

CVSS v3.1
9.8
EPSS
1%
Percentile
66.4
In the wild
Unconfirmed
What it is

🔥 A single line in your code could let attackers rewrite properties and mess with your entire application! Think of this vulnerability like a mischievous child finding a way to swap the labels on jars in a pantry. Instead of salt and sugar being distinct, they can be switched, leading to disastrous recipes! If exploited, an attacker could manipulate application behavior, set malicious properties, or even execute arbitrary code. This could lead to data corruption, unauthorized access, or a complete system compromise—absolutely devastating!

Put simply

Think of this vulnerability like a mischievous child finding a way to swap the labels on jars in a pantry. Instead of salt and sugar being distinct, they can be switched, leading to disastrous recipes! This critical prototype pollution vulnerability exists in the resolveShims function of the browserify-shim package (version 3.8.15). By manipulating the fullPath variable, an attacker can alter object properties, impacting application integrity.

What to do

If exploited, an attacker could manipulate application behavior, set malicious properties, or even execute arbitrary code. This could lead to data corruption, unauthorized access, or a complete system compromise—absolutely devastating! Immediate action is required! Upgrade the browserify-shim package to a patched version, if available, or consider removing it altogether if it's not actively maintained. Review any instances where resolve-shims.js is used to ensure no malicious input is allowed. You got this! Fixing this vulnerability will help secure your application and restore peace of mind. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01142 · 66.4th percentile
Published
2022-10-28T00:00Z
EPSS history
Timeline
  • 28 OCT 00:00Z
    Prototype pollution vulnerability in function resolveShims in resolve-shims.js in thlorenz browserify-shim 3.8.15 via the fullPath variable in resolve-shims.js
    cvelistv5