CVE-2021-3918CWE-1321

Prototype Pollution in kriszyp/json-schema

Critical · published November 13, 2021

CVSS v3.0
9.8
EPSS
4%
Percentile
90.0
In the wild
Unconfirmed
What it is

🔥 A tiny tweak can turn your entire application upside down! This CVE-2021-3918 vulnerability in json-schema allows attackers to modify object prototypes, leading straight to chaos. ⚡ Think of it like a chef who can change the recipe of every dish just by sneaking in a word while ordering ingredients. Suddenly, everyone is served a surprise dish that nobody asked for! An attacker could exploit this vulnerability by altering core object properties, potentially allowing them to control execution flow, manipulate data, or even inject malicious content. It's a recipe for disaster that undermines the integrity of your application!

Put simply

Think of it like a chef who can change the recipe of every dish just by sneaking in a word while ordering ingredients. Suddenly, everyone is served a surprise dish that nobody asked for! This vulnerability stems from improperly controlled modification of object prototype attributes, which means an attacker could manipulate the functionality of JavaScript objects in any application using json-schema, leading to unpredictable behavior.

What to do

An attacker could exploit this vulnerability by altering core object properties, potentially allowing them to control execution flow, manipulate data, or even inject malicious content. It's a recipe for disaster that undermines the integrity of your application! To protect your application, upgrade to json-schema version 0.4.0 or later immediately. Additionally, conduct a thorough security review of your code to ensure prototype properties are not unintentionally exposed or modified. 🛡️ You've got this! With a quick upgrade and careful checks, you can secure your application against this sneaky vulnerability! 🚀

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03830 · 90.0th percentile
Weakness
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Published
2021-11-13T00:00Z
EPSS history
Timeline
  • 13 NOV 00:00Z
    Prototype Pollution in kriszyp/json-schema
    cvelistv5