CVE-2021-42581

Prototype poisoning in function mapObjIndexed in Ramda 0.27.0 and earlier allows attackers to compromise integrity or availability of application via supplying…

published May 10, 2022

CVSS
—
EPSS
1%
Percentile
72.0
In the wild
Unconfirmed
What it is

⚠️ A crafty little bug in Ramda allows a sneaky attacker to mess with your application by sending a special object that whispers secrets through its prototype! 🔍 Think of it like a restaurant where a diner sneaks in their own ingredient list, swapping out the chef's carefully chosen ones for their own strange spices. This custom ingredient list changes the flavor of every dish, without anyone knowing it happened! If an attacker gets a hold of this vulnerability, they could alter the behavior of your application, impacting its integrity or even availability. Imagine a whole menu of strange dishes suddenly served without warning — the surprise could wreak havoc on your users!

Put simply

Think of it like a restaurant where a diner sneaks in their own ingredient list, swapping out the chef's carefully chosen ones for their own strange spices. This custom ingredient list changes the flavor of every dish, without anyone knowing it happened! This vulnerability occurs in Ramda 0.27.0 and earlier, where an attacker can supply a crafted object containing an own property '__proto__.' This allows them to manipulate the object's prototype chain, leading to unexpected behavior in the application.

What to do

If an attacker gets a hold of this vulnerability, they could alter the behavior of your application, impacting its integrity or even availability. Imagine a whole menu of strange dishes suddenly served without warning — the surprise could wreak havoc on your users! To safeguard your app, update Ramda to the latest version as soon as possible to close this gap. Also, audit any object manipulations to ensure that your prototypes are secured and can't be tampered with. Don't let custom ingredients sneak into your recipe! You've got this! Stay vigilant and keep your code clean to thwart any potential surprises. 🦸

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01386 · 72.0th percentile
Published
2022-05-10T10:08Z
EPSS history
Timeline
  • 10 MAY 10:08Z
    Prototype poisoning in function mapObjIndexed in Ramda 0.27.0 and earlier allows attackers to compromise integrity or availability of application via supplying…
    cvelistv5