CVE-2022-21190 json
Prototype Pollution
published 2022-05-13 4 y ago modified 2026-07-08 4 mo ago also GHSA-jjf5-wx3j-3fv7 , EUVD-2022-4383
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.0%
- EPSS 4.0% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm convict 6.2.3
- n/a convict 6.2.3
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21190 updated cvss 7.5
convict: A Prototype Pollution Vulnerbility in convict
-
Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-docs-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-rhel8-operatornot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.97% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-CONVICT-2774757 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | convict | <6.2.3 |
6.2.3 |
Affected products
- n/a convict
Classification
- Weakness
-
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
References
-
github.com
/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75
web, patch, tool-signature
-
github.com
/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571
web, broken-link, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-CONVICT-2774757
web, exploit, third-party-advisory
-
gist.github.com
/dellalibera/cebce20e51410acebff1f46afdc89808
web, exploit, third-party-advisory
-
github.com
/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07
web, broken-link, release-notes, tool-signature
-
nvd.nist.gov
/vuln/detail/CVE-2022-21190
advisory
-
github.com
/mozilla/node-convict
package
Sources
- CVE List CVE-2022-21190
- GitHub Advisory GHSA-jjf5-wx3j-3fv7
- NVD CVE-2022-21190
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.