CVE-2022-22143
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management