{"id":"CVE-2020-7766","published":"2020-11-10T15:35:15Z","modified":"2024-09-16T22:14:07Z","title":"Prototype Pollution","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects all versions of package json-ptr. The issue occurs in the set operation (https://flitbit.github.io/json-ptr/classes/_src_pointer_.jsonpointer.htmlset) when the force flag is set to true. The function recursively set the property in the target object, however it does not properly check the key being set, leading to a prototype pollution.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01902,"percentile":0.79618,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396","tags":["x_refsource_MISC"]},{"url":"https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174","tags":["x_refsource_MISC"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":15.92},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":"n/a","product":"json-ptr","versions":["< unspecified"]}],"affected":[{"ecosystem":"npm","package":"json-ptr","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-x5r6-x823-9848"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-1228","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-json-ptr-cve-2020-7766","children":[{"from":"CVE-2020-7766","to":"CVE-2021-23509","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"A type confusion vulnerability can lead to a bypass of CVE-2020-7766 when the user-provided keys used in the pointer parameter are arrays.","from":"CVE.org","in":"CVE-2021-23509"}]}]}}