{"schemaVersion":3,"id":"CVE-2022-21190","aliases":["GHSA-jjf5-wx3j-3fv7","SNYK-JS-CONVICT-2774757"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-05-13T20:00:38.749Z","modified":"2024-09-17T03:32:50.471Z","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":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":10,"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.03974,"percentile":0.90352,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0.06099999999999994,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03913},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03974,"percentile":0.90352}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03913,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03974,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03974,"percentile":0.90352}]},"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":"GITHUB_DELLALIBERA_CEBCE20E51410ACEBFF1F46AFDC89808","name":"Cebce20E51410Acebff1F46Afdc89808","source":"github","url":"https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_11F4D50155ACCDF7","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2774757","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"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.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.3","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-2774757","label":"snyk.io/vuln/SNYK-JS-CONVICT-2774757","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571","label":"github.com/mozilla/…","hostname":"github.com","tags":["X Refsource MISC","WEB","Broken Link","Patch","Third Party Advisory"]},{"url":"https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808","label":"gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808","hostname":"gist.github.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07","label":"github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07","hostname":"github.com","tags":["X Refsource MISC","WEB","Broken Link","Release Notes","Tool Signature"]},{"url":"https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","label":"github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Tool Signature"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21190","label":"nvd.nist.gov/vuln/detail/CVE-2022-21190","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mozilla/node-convict","label":"github.com/mozilla/node-convict","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-05-13T20:00:38.749Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T03:32:50.471Z","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-19T09:53:54.611Z","stale":false,"partial":false}}