9.8

CVE-2022-21190: mozilla convict Prototype Pollution

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-jjf5-wx3j-3fv7SNYK-JS-CONVICT-2774757
Published 13-05-2022Last modified 17-09-2024

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
3.97%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Timeline

  1. 13-05-2022
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last 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

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

18-09-202618-10-2026
EPSS score
3.97%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Cebce20E51410Acebff1F46Afdc89808

    Maturity: poc

  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Mozilla1 product
Npm1 product
  • convict< 6.2.3

2 vendors · 2 products

References

7 links