CVE-2021-3918 Prototype Pollution in kriszyp/json-schema

Critical 9.8 Published Updated

Prototype pollution in the json-schema library allows attackers to modify object prototypes, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3918?

CVE-2021-3918 is a critical vulnerability in Debian Debian Linux, published on 13 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

json-schema is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Weakness: CWE-1321

Which versions are affected by CVE-2021-3918?

2 open source packages ship an affected version, including json-schema. It affects 2 products.

PackageAffectedFixed in
json-schema npmAll versions0.4.0
json-schema npmAll versions0.4.0

Products include Debian Debian Linux, Json-Schema Project Json-Schema.

How do I fix CVE-2021-3918?

Upgrade json-schema to 0.4.0 or later.

Is CVE-2021-3918 being exploited?

There is no known exploitation of CVE-2021-3918 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as CLSA-2026-1781052738, DEBIAN-CVE-2021-3918, DLA-3228-1, GHSA-896r-f27r-55mw, MGASA-2022-0463, MINI-54pr-jvvg-57w5 and 3 more.

Is CVE-2021-3918 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free