
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2022-22143 affects the package convict before version 6.2.2. It is a Prototype Pollution vulnerability that occurs via the convict function due to missing validation of parentKey. This vulnerability was discovered on January 14, 2022, and publicly disclosed on March 28, 2022. Notably, this vulnerability derives from an incomplete fix of a previous vulnerability (Snyk).
The vulnerability allows for Prototype Pollution attacks through the convict function. The issue stems from insufficient validation of the parentKey parameter, which could allow attackers to manipulate JavaScript object prototypes. The vulnerability has received a CVSS v3.1 base score of 9.8 (Critical) from NVD and 7.5 (High) from Snyk, indicating its severe nature. The attack vector is network-based with low attack complexity, requiring no privileges or user interaction (Snyk Vuln).
When exploited, this vulnerability can lead to several severe consequences: Denial of Service (DoS) by triggering JavaScript exceptions, potential Remote Code Execution (RCE) in specific cases where the codebase evaluates and executes object attributes, and Property Injection where attackers can pollute properties that the codebase relies on for security-critical information such as privileges or tokens (Snyk Vuln).
The recommended mitigation is to upgrade the convict package to version 6.2.2 or higher. Additional preventive measures include freezing the prototype using Object.freeze(Object.prototype), implementing schema validation for JSON input, avoiding unsafe recursive merge functions, and considering the use of objects without prototypes or using Map instead of Object (Snyk Vuln).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."