CVE-2023-3696CWE-1321

Prototype Pollution in automattic/mongoose

Critical · published July 17, 2023

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

🔥 A tiny code tweak can lead to massive chaos! The prototype pollution flaw in automattic/mongoose versions prior to 7.3.4 lets attackers redefine essential objects — think of it as replacing the recipe for your grandma's secret pie with one for cardboard stew! In the world of software, this is like a chef receiving an incorrect recipe card that leads them to prepare a dish using spoiled ingredients. If the foundation (or prototype) of an object is corrupted, every dish (or function) made from that base could be ruined! An attacker could exploit this flaw to modify the structure of critical objects, potentially leading to the execution of arbitrary code, data leaks, or even taking complete control of the application. The consequences could be absolutely devastating, ranging from system crashes to unauthorized data manipulation.

Put simply

In the world of software, this is like a chef receiving an incorrect recipe card that leads them to prepare a dish using spoiled ingredients. If the foundation (or prototype) of an object is corrupted, every dish (or function) made from that base could be ruined! This prototype pollution vulnerability allows attackers to manipulate the object prototype, enabling them to inject or alter properties of objects in unexpected ways. This can occur due to improper handling of user input in versions prior to 7.3.4.

What to do

An attacker could exploit this flaw to modify the structure of critical objects, potentially leading to the execution of arbitrary code, data leaks, or even taking complete control of the application. The consequences could be absolutely devastating, ranging from system crashes to unauthorized data manipulation. To secure your applications, upgrade automattic/mongoose to version 7.3.4 or later immediately. Additionally, review your code for any unvalidated input that may interact with object prototypes, and implement rigorous validation checks. You've got this! Just follow these steps, and you'll have your application locked down in no time! 🛡️

The record
Technical detail
CVSS v3.0
10.0 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01208 · 68.1th percentile
Weakness
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Published
2023-07-17T00:00Z
EPSS history
Timeline
  • 17 JUL 00:00Z
    Prototype Pollution in automattic/mongoose
    cvelistv5