Prototype Pollution in nconf
Date: 2022-04
Affected: npm/nconf
Attack vector: other
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2022-21803
CWE: CWE-1321
CVSS: 7.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)

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.


Mitigations:

Architectural layers (MAESTRO):