Prototype pollution in convict
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | convict | before 6.2.3 | 6.2.3 | Patch available | CNA |
| — | convict (npm) | before 6.2.3 | 6.2.3 | Patch available | GHSA-jjf5-wx3j-3fv7 |
- convict Vendor— Affected before 6.2.3 Fixed in 6.2.3 Patch available CNA
- convict (npm) Vendor— Affected before 6.2.3 Fixed in 6.2.3 Patch available GHSA-jjf5-wx3j-3fv7
Remediation
- Fix · CNA convict Fixed in 6.2.3
- Fix · GHSA-jjf5-wx3j-3fv7 convict (npm) Fixed in 6.2.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Advanced Cluster Security 3
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21190
- 2026-10-03 Alias added: GHSA-jjf5-wx3j-3fv7
References
Patch 2
More Mozilla Convict vulnerabilities
- TI-2023-00157 Prototype Pollution in convict CVSS 3.1HIGH 8.4
- TI-2022-06479 Prototype pollution in convict CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-21190 · CVE Program
- CVE-2022-21190 · NVD
- FIRST EPSS
- GHSA-jjf5-wx3j-3fv7 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21190 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences