# CVE-2022-21190: 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): 3.97%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-13T20:00:38.749Z
- Modified: 2026-07-08T06:50:01.831Z
- Also known as: GHSA-jjf5-wx3j-3fv7, SNYK-JS-CONVICT-2774757
- Weaknesses: CWE-1321
- Assigned by: snyk

## Description

This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) introduced, relies on the startsWith method and does not prevent the vulnerability: before splitting the path, it checks if it starts with __proto__ or this.constructor.prototype. To bypass this check it's possible to prepend the dangerous paths with any string value followed by a dot, like for example foo.__proto__ or foo.this.constructor.prototype.

(As written by CVE List.)

## Affected

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

## 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 9.8 Critical `CVSS:3.1/AV:N/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-2774757> (exploit, third-party-advisory, web)
- <https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808> (exploit, third-party-advisory, web)
- <https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571> (broken-link, patch, third-party-advisory, web)
- <https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07> (broken-link, release-notes, tool-signature, web)
- <https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75> (patch, tool-signature, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21190> (advisory)
- <https://github.com/mozilla/node-convict> (package)

## Sources

- CVE List: [CVE-2022-21190](https://www.cve.org/CVERecord?id=CVE-2022-21190), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-jjf5-wx3j-3fv7](https://github.com/advisories/GHSA-jjf5-wx3j-3fv7), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-21190](https://nvd.nist.gov/vuln/detail/CVE-2022-21190), Public domain, modified 2026-06-17

---

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