PT-2022-15141 · Npm · Nconf
Alessio Della Libera
·
Published
2022-04-12
·
Updated
2022-04-20
·
CVE-2022-21803
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
nconf versions prior to 0.11.4
Description
The issue affects the nconf package when using the memory engine, allowing the storage of a nested JSON representation of the configuration. The
set() function is vulnerable to Prototype Pollution, enabling the modification of properties on the Object.prototype by providing a crafted property.Recommendations
For versions prior to 0.11.4, update to version 0.11.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
set() function until a patch is available. Avoid using crafted properties that could exploit the Prototype Pollution vulnerability in the affected set() function.Exploit
Fix
Prototype Pollution
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nconf