CVE-2022-21803
HIGH 7.5CVSS 3.1Prototype Pollution in nconf
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.
- Published
- 12 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-6xwr-q98w-rvg7
- Sources
- NVDJSONOSV GHSA-6xwr-q98w-rvg7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nconf_project | nconfcpe:2.3:a:nconf_project:nconf:*:*:*:*:*:node.js:*:* |
< 0.11.4 | 0.11.4 |
| OSV | npm | nconf | < 0.11.4 | 0.11.4 |
References
- https://github.com/indexzero/nconf/pull/397 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/indexzero/nconf/releases/tag/v0.11.4 · Release Notes, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2632450 · Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-NCONF-2395478 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21803 · ADVISORY
- https://github.com/indexzero/nconf · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 12 Apr 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 13 Apr 2022)