{"id":"CVE-2020-7766","aliases":["EUVD-2021-1228","GHSA-x5r6-x823-9848"],"status":"published","title":"Prototype Pollution","description":"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.","severity":{"version":"3.1","score":7.3,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01902,"percentile":0.79849,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1321","CWE-400","CWE-74"],"published":"2020-11-10T15:35:15Z","modified":"2026-06-17T03:25:24Z","fixes":[{"ecosystem":"npm","package":"json-ptr","fixed_in":["2.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"json-ptr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"json-ptr","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]}],"products":[{"vendor":"json-ptr_project","product":"json-ptr"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7766","tags":["advisory"]},{"url":"https://github.com/418sec/json-ptr/pull/3","tags":["web"]},{"url":"https://www.npmjs.com/package/json-ptr","tags":["web"]},{"url":"https://www.huntr.dev/bounties/2-npm-json-ptr/"},{"url":"https://github.com/flitbit/json-ptr/commit/2539e3494c80af1eef24f0f433654a61f255f011","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x5r6-x823-9848"},{"url":"https://www.huntr.dev/bounties/2-npm-json-ptr","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2020-7766","title":"Prototype Pollution","description":"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.","status":"published","published":"2020-11-10T15:35:15.894Z","modified":"2024-09-16T22:14:07.645Z","cvss":[{"version":"3.1","score":7.3,"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","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2021-1228","description":"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.","status":"published","published":"2020-11-10T15:35:15Z","modified":"2024-09-16T22:14:07Z","cvss":[{"version":"3.1","score":7.3,"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","level":"high"}],"updated_at":"2026-11-03T00:55:04.822795Z"}],"ghsa":[{"id":"GHSA-x5r6-x823-9848","title":"Arbitrary Code Execution in json-ptr","description":"npm `json-ptr` before 2.1.0 has an arbitrary code execution vulnerability. 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.","status":"published","published":"2021-05-10T19:15:43Z","modified":"2023-09-05T22:44:46Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-74","CWE-400","CWE-1321"],"updated_at":"2026-11-02T14:37:02.632342Z"}],"nvd":[{"id":"CVE-2020-7766","description":"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.","status":"published","published":"2020-11-10T16:15:14.963Z","modified":"2026-06-17T03:25:24.513Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:06:24.137599Z"}],"osv":[{"id":"GHSA-x5r6-x823-9848","title":"Arbitrary Code Execution in json-ptr","description":"npm `json-ptr` before 2.1.0 has an arbitrary code execution vulnerability. 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.","status":"published","published":"2021-05-10T19:15:43Z","modified":"2025-01-14T08:57:19.814698Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-1321","CWE-400","CWE-74"],"updated_at":"2026-11-02T15:46:59.484835Z"}]}}
