{"id":"CVE-2022-21190","summary":"Prototype Pollution","details":"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.","aliases":["GHSA-jjf5-wx3j-3fv7","SNYK-JS-CONVICT-2774757"],"modified":"2026-08-12T03:51:33.938700018Z","published":"2022-05-13T20:00:38.749Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21190.json","cna_assigner":"snyk"},"references":[{"type":"WEB","url":"https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21190.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21190"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2774757"},{"type":"FIX","url":"https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mozilla/node-convict","events":[{"introduced":"0"},{"fixed":"deef5d77f4f6a714579387c2d67a051396477415"},{"fixed":"1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75"}],"database_specific":{"cpe":"cpe:2.3:a:mozilla:convict:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.2.3"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v6.2.2","v6.2.1","v6.2.0","v5.2.0","v6.1.0","v6.0.1","v6.0.0","v5.1.0","v5.0.2","v5.0.1","v5.0.0","v4.4.1","v4.4.0","v4.3.2","v4.3.1","v4.3.0","v4.2.0","v4.1.0","v4.0.2","v4.0.1","v4.0.0","v3.0.0","v2.0.0","v1.4.0","v1.3.0","v1.2.0","v1.1.3","v1.1.2","v1.1.1","v1.1.0","v0.5.1","v0.5.0","v0.4.3","v0.4.2","v0.4.1","v0.4.0","v0.3.3","v0.3.1","v0.3.0","v0.2.3","v0.2.2","v0.2.1","v0.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21190.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}