{"id":"CVE-2022-22143","aliases":["CVE-2022-22143","GHSA-x2w5-725j-gf2g","SNYK-JS-CONVICT-2340604"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"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)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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)","source":"cvelist"},{"lang":"en","text":"### Impact\n\n* An attacker can inject attributes that are used in other components\n* An attacker can override existing attributes with ones that have incompatible type, which may lead to a crash.\n\nThe main use case of Convict is for handling server-side configurations written by the admins owning the servers, and not random users. So it's unlikely that an admin would deliberately sabotage their own server. Still a situation can happen where an admin not knowledgeable about JavaScript could be tricked by an attacker into writing the malicious JavaScript code into some config files.\n\n### Patches\n\nThe problem is patched in `convict@6.2.3`. Users should upgrade to `convict@6.2.3`.\n\n### Workarounds\n\nNo way for users to fix or remediate the vulnerability without upgrading\n\n### References\n\n* https://www.huntr.dev/bounties/1-npm-convict/\n* #384\n* 3b86be087d8f14681a9c889d45da7fe3ad9cd880\n* 1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75\n\n### For more information\n\nIf you have any questions or comments about this advisory: \nadd your question as a comment in #384","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete convict versiones anteriores a 6.2.2, son vulnerables a una Contaminación de Prototipos por medio de la función convict debido a la falta de comprobación de parentKey. **Nota:** Esta vulnerabilidad deriva de una corrección incompleta de otra [vulnerabilidad](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)","source":"nvd"}],"published":"2022-04-20T16:21:03.000Z","modified":"2026-09-10T03:49:19.385Z","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:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"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.2","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.2"}],"vendor":"mozilla","product":"convict","cpe":"cpe:2.3:a:mozilla:convict:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/node-convict/pull/384","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/node-convict","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/node-convict/releases/tag/v6.2.2","tags":["web"],"sources":["ghsa"]},{"url":"https://www.huntr.dev/bounties/1-npm-convict","tags":["web"],"sources":["ghsa"]}],"credits":["P.Adithya Srinivas","Masudul Hasan Masud Bhuiyan","Cristian-Alexandru Staicu"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-22143","url":"https://www.cve.org/CVERecord?id=CVE-2022-22143","licence":"CVE Terms of Use","modified":"2024-09-17T02:02:16.928Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x2w5-725j-gf2g","url":"https://github.com/advisories/GHSA-x2w5-725j-gf2g","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:19.385Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-22143","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143","licence":"Public domain","modified":"2026-06-17T04:27:49.693Z"}],"updatedAt":"2026-11-25T22:58:11.323Z","epss":{"score":0.02179,"percentile":0.82864,"date":"2026-12-01T12:00:22.000Z"}}