CVE-2022-21190: mozilla convict Prototype Pollution
Vulnerability summary
CVE-2022-21190 is a critical (CVSS 9.8) Prototype Pollution vulnerability in mozilla convict. EPSS estimates a 3.97% chance of exploitation in the next 30 days, higher than 90.3% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 13-05-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
3.97%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
+0.06 pp
From 3.91% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundCebce20E51410Acebff1F46Afdc89808
Maturity: poc
Exploit Reference (snyk.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Mozilla1 product
- convict< 6.2.3
Npm1 product
- convict< 6.2.3
2 vendors · 2 products
References
7 links- gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808X Refsource MISCWEBExploitThird Party Advisory
- github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07X Refsource MISCWEBBroken LinkRelease NotesTool Signature
- github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75X Refsource MISCWEBPatchTool Signature