CVE-2022-22143
convict: Prototype Pollution in convict
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Red Hat (medium).
Description
The package convict before 6.2.2 are vulnerable to Prototype Pollution via the convict function due to missing validation of parentKey. **Note:** This vulnerability derives from an incomplete fix of another [vulnerability](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | convict | 6.2.3 |
References
- https://access.redhat.com/security/cve/CVE-2022-22143
- https://github.com/advisories/GHSA-x2w5-725j-gf2g
- https://github.com/mozilla/node-convict
- https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569
- https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880
- https://github.com/mozilla/node-convict/pull/384
- https://github.com/mozilla/node-convict/releases/tag/v6.2.2
- https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g