{"id":"CVE-2022-21190","aliases":["CVE-2022-21190","GHSA-jjf5-wx3j-3fv7","SNYK-JS-CONVICT-2774757"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete convict versiones anteriores a 6.2.3. Esto es una omisión de [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). La [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) introducida, esta basada en el método startsWith y no impide la vulnerabilidad: antes de dividir la ruta, comprueba si comienza con __proto__ o this.constructor.prototype. Para impider esta comprobación es posible anteponer a las rutas peligrosas cualquier valor de cadena seguido de un punto, como por ejemplo foo.__proto__ o foo.this.constructor.prototype","source":"nvd"}],"published":"2022-05-13T20:00:38.749Z","modified":"2026-07-08T06:50:01.831Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"6.2.3","status":"affected"}],"product":"convict","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.2.3"}],"ecosystem":"npm","package":"convict","purl":"pkg:npm/convict","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.2.3"}],"vendor":"mozilla","product":"convict","cpe":"cpe:2.3:a:mozilla:convict:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2774757","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571","tags":["broken-link","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07","tags":["broken-link","release-notes","tool-signature","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","tags":["patch","tool-signature","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21190","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/node-convict","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21190","url":"https://www.cve.org/CVERecord?id=CVE-2022-21190","licence":"CVE Terms of Use","modified":"2024-09-17T03:32:50.471Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jjf5-wx3j-3fv7","url":"https://github.com/advisories/GHSA-jjf5-wx3j-3fv7","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:01.831Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21190","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21190","licence":"Public domain","modified":"2026-06-17T04:25:42.700Z"}],"updatedAt":"2026-11-25T22:58:11.710Z","epss":{"score":0.03974,"percentile":0.90734,"date":"2026-12-01T12:00:22.000Z"}}