CVE-2022-21803 Prototype Pollution

High 7.3 Published Updated

Prototype pollution in nconf allows attackers to modify Object.prototype, potentially leading to code execution or privilege escalation.

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

What is CVE-2022-21803?

CVE-2022-21803 is a high-severity vulnerability in nconf, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package nconf before 0.11.4. When using the memory engine, it is possible to store a nested JSON representation of the configuration. The .set() function, that is responsible for setting the configuration properties, is vulnerable to Prototype Pollution. By providing a crafted property, it is possible to modify the properties on the Object.prototype.

Weakness: CWE-1321

Which versions are affected by CVE-2022-21803?

2 open source packages ship an affected version, including nconf. It affects 1 product.

PackageAffectedFixed in
nconf npmAll versions0.11.4
nconf npmAll versions0.11.4

Products include Nconf Project Nconf.

How do I fix CVE-2022-21803?

Upgrade nconf to 0.11.4 or later.

Is CVE-2022-21803 being exploited?

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

Sources

Also known as GHSA-6xwr-q98w-rvg7.

Is CVE-2022-21803 in your software?

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

Check your SBOMs for free