{"schemaVersion":3,"id":"CVE-2022-22143","aliases":["GHSA-x2w5-725j-gf2g","SNYK-JS-CONVICT-2340604"],"status":"published","duplicateOf":null,"title":null,"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)","dates":{"published":"2022-05-01T15:30:45.287Z","modified":"2024-09-17T02:02:16.928Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":6.4,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02179,"percentile":0.82075,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.034,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02145},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02179,"percentile":0.82075}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02179,"percentile":0.82075}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_BB4E301C7029304A","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","description":"The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1321.html"}],"affected":[{"vendor":"mozilla","product":"convict","name":"convict","label":"convict","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.2","eol":null,"hubHref":"/vendor/mozilla/convict"},{"vendor":"Npm","product":"convict","name":"convict","label":"convict","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/convict","purlType":"npm","versions":[{"text":"< 6.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.3","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604","label":"snyk.io/vuln/SNYK-JS-CONVICT-2340604","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569","label":"github.com/mozilla/…","hostname":"github.com","tags":["X Refsource MISC","WEB","Broken Link"]},{"url":"https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880","label":"github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g","label":"github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143","label":"nvd.nist.gov/vuln/detail/CVE-2022-22143","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mozilla/node-convict/pull/384","label":"github.com/mozilla/node-convict/pull/384","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mozilla/node-convict","label":"github.com/mozilla/node-convict","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mozilla/node-convict/releases/tag/v6.2.2","label":"github.com/mozilla/node-convict/releases/tag/v6.2.2","hostname":"github.com","tags":["WEB"]},{"url":"https://www.huntr.dev/bounties/1-npm-convict","label":"www.huntr.dev/bounties/1-npm-convict","hostname":"www.huntr.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-05-01T15:30:45.287Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T02:02:16.928Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:07:48.906Z","stale":false,"partial":false}}