# CVE-2022-22143: Prototype Pollution

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.18%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-20T16:21:03.000Z
- Modified: 2026-09-10T03:49:19.385Z
- Also known as: GHSA-x2w5-725j-gf2g, SNYK-JS-CONVICT-2340604
- Weaknesses: CWE-1321
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- convict: from unspecified before 6.2.2
- convict (npm): before 6.2.3
- mozilla convict: before 6.2.2

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-CONVICT-2340604> (exploit, patch, third-party-advisory, web)
- <https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569> (broken-link, web)
- <https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880> (patch, third-party-advisory, web)
- <https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-22143> (advisory)
- <https://github.com/mozilla/node-convict/pull/384> (web)
- <https://github.com/mozilla/node-convict> (web)
- <https://github.com/mozilla/node-convict/releases/tag/v6.2.2> (web)
- <https://www.huntr.dev/bounties/1-npm-convict> (web)

## Sources

- CVE List: [CVE-2022-22143](https://www.cve.org/CVERecord?id=CVE-2022-22143), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-x2w5-725j-gf2g](https://github.com/advisories/GHSA-x2w5-725j-gf2g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-22143](https://nvd.nist.gov/vuln/detail/CVE-2022-22143), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-22143 · Whole record: https://cve.day/CVE-2022-22143.json · Rebuilt by cve.day 2026-11-25T22:58:11.323Z
