Vulnerability · Published Apr 12, 2022 · Assigned by snyk
CVE-2022-21803Prototype Pollution
High 7.3
In plain English
A high-severity security flaw in nconf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.3High
Exploit odds (30 days)1.8%top 21.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | nconf | 0.11.4 | GHSA-6xwr-q98w-rvg7 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-NCONF-2395478 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2632450 x_refsource_MISC
- https://github.com/indexzero/nconf/pull/397 x_refsource_MISC
- https://github.com/indexzero/nconf/releases/tag/v0.11.4 x_refsource_MISC