{"id":"GHSA-rrqv-vjrw-hrcr","aliases":["GHSA-rrqv-vjrw-hrcr"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution in json-ptr","summary":"There is a security vulnerability in `json-ptr` versions prior to v2.1.0 in which an unscrupulous actor may execute arbitrary code. If your code sends un-sanitized user input to json-ptr's .get() method, your project is vulnerable to this injection-style vulnerability.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"There is a security vulnerability in `json-ptr` versions prior to v2.1.0 in which an unscrupulous actor may execute arbitrary code. If your code sends un-sanitized user input to json-ptr's .get() method, your project is vulnerable to this injection-style vulnerability.","format":"markdown","source":"ghsa"}],"published":"2021-05-26T19:59:19.000Z","modified":"2021-05-26T19:57:10.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"npm","package":"json-ptr","purl":"pkg:npm/json-ptr","source":"ghsa"}],"references":[{"url":"https://github.com/418sec/json-ptr/pull/3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/flitbit/json-ptr/blob/456a1728b45c8663bb1ac20a249c5fb17495ec6b/README.md#security-vulnerability-prior-to-v210","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/flitbit/json-ptr/blob/master/src/util.ts%23L174","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939","tags":["web"],"sources":["ghsa"]},{"url":"https://www.huntr.dev/bounties/2-npm-json-ptr","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1706","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/json-ptr","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rrqv-vjrw-hrcr","url":"https://github.com/advisories/GHSA-rrqv-vjrw-hrcr","licence":"CC-BY-4.0","modified":"2021-05-26T19:57:10.000Z"}],"updatedAt":"2026-11-25T22:56:46.513Z"}