{"id":"CVE-2020-7766","aliases":["CVE-2020-7766","GHSA-x5r6-x823-9848"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete json-ptr.&#xa0;El problema ocurre en la operación de configuración (https://flitbit.github.io/json-ptr/classes/_src_pointer_.jsonpointer.htmlset) cuando el flag de fuerza se establece en verdadero.&#xa0;La función establece de forma recursiva la propiedad en el objeto objetivo, sin embargo, no comprueba correctamente la clave que está siendo configurada, lo que genera una contaminación de prototipo","source":"nvd"}],"published":"2020-11-10T15:35:15.894Z","modified":"2026-06-17T03:25:24.513Z","severity":{"scorer":"snyk","scheme":"CVSS: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","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS: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","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74","CWE-400","CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"json-ptr","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"npm","package":"json-ptr","purl":"pkg:npm/json-ptr","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.0"}],"vendor":"json-ptr_project","product":"json-ptr","cpe":"cpe:2.3:a:json-ptr_project:json-ptr:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7766","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/418sec/json-ptr/pull/3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/flitbit/json-ptr/commit/2539e3494c80af1eef24f0f433654a61f255f011","tags":["web"],"sources":["ghsa"]},{"url":"https://www.huntr.dev/bounties/2-npm-json-ptr","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/json-ptr","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera (d3lla)"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7766","url":"https://www.cve.org/CVERecord?id=CVE-2020-7766","licence":"CVE Terms of Use","modified":"2024-09-16T22:14:07.645Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x5r6-x823-9848","url":"https://github.com/advisories/GHSA-x5r6-x823-9848","licence":"CC-BY-4.0","modified":"2025-01-14T08:57:19.814Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7766","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7766","licence":"Public domain","modified":"2026-06-17T03:25:24.513Z"}],"updatedAt":"2026-11-25T22:57:55.668Z","epss":{"score":0.01902,"percentile":0.80329,"date":"2026-12-02T12:00:21.000Z"}}