{"id":"CVE-2022-21190","published":"2022-05-13T20:00:38Z","modified":"2024-09-17T03:32:50Z","title":"Prototype Pollution","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03645,"percentile":0.90346,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2774757","tags":["x_refsource_MISC"]},{"url":"https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808","tags":["x_refsource_MISC"]},{"url":"https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07","tags":["x_refsource_MISC"]},{"url":"https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","tags":["x_refsource_MISC"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":18.07},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"convict","versions":[">= unspecified, < 6.2.3"]}],"affected":[{"ecosystem":"npm","package":"convict","vulnerableRanges":["<6.2.3"],"patched":["6.2.3"],"from":["GHSA-jjf5-wx3j-3fv7"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-4383","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mozilla-convict-cve-2022-22143","parents":[{"from":"CVE-2022-22143","to":"CVE-2022-21190","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"This is a bypass of CVE-2022-22143.","from":"CVE.org","in":"CVE-2022-21190"},{"kind":"same-code","provenance":"machine","files":["packages/convict/src/main.js"],"commits":["https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880"],"basis":"shared function","functions":["convict"]},{"kind":"similar","provenance":"machine","score":0.55,"basis":"same package + description similarity"}]}],"children":[{"from":"CVE-2022-21190","to":"CVE-2023-0163","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/convict/src/main.js"],"commits":["https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75","https://github.com/mozilla/node-convict/commit/fb602fbe1e9f14f2e88ecb8179d0f76466d21ecb"],"basis":"rarely changed file"}]}]}}