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.
{
"cna_assigner": "snyk",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21803.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.11.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "SplitRange"
},
{
"original_tag": "v0.11.4",
"range": [
{
"fixed": "f25feb2913fc21a5d80039f6213c2d9ae906ec29"
}
],
"source": "REFERENCES_TAG"
},
{
"cpe": "cpe:2.3:a:nconf_project:nconf:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.11.4"
}
],
"source": "CPE_RANGE"
}
]
}