{"id":"CVE-2024-21534","published":"2024-10-11T05:00:01Z","modified":"2024-11-18T10:37:45Z","title":"All versions of the package jsonpath-plus are vulnerable to Remote Code Execution (RCE) due to improper input…","vendor":null,"product":null,"tier":"tail","description":{"text":"All versions of the package jsonpath-plus are vulnerable to Remote Code Execution (RCE) due to improper input sanitization. An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of vm in Node.\r\r**Note:**\r\rThere were several attempts to fix it in versions [10.0.0-10.1.0](https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0) but it could still be exploited using [different payloads](https://github.com/JSONPath-Plus/JSONPath/issues/226).","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.10412,"percentile":0.96459,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8185019","tags":[]},{"url":"https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0","tags":[]},{"url":"https://github.com/JSONPath-Plus/JSONPath/issues/226","tags":[]}],"priority":{"score":31.2,"factors":[{"name":"EPSS percentile","points":19.29},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2024-11-13","earliestUrl":"https://github.com/pabloopez/CVE-2024-21534","repos":[{"name":"verylazytech/cve-2024-21534","url":"https://github.com/verylazytech/cve-2024-21534","stars":4,"created":"2024-11-28"},{"name":"pabloopez/CVE-2024-21534","url":"https://github.com/pabloopez/CVE-2024-21534","stars":1,"created":"2024-11-13"},{"name":"BohemianHacks/CVE-2024-21534-poc","url":"https://github.com/BohemianHacks/CVE-2024-21534-poc","stars":1,"created":"2024-11-23"}]},"first":{"date":"2024-11-13","source":"PoC-in-GitHub","url":"https://github.com/pabloopez/CVE-2024-21534"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"jsonpath-plus","versions":["all versions"]},{"vendor":"n/a","product":"org.webjars.npm:jsonpath-plus","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-11T14:23:05.262400Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsonpath-plus","vulnerableRanges":["<10.2.0"],"patched":["10.2.0"],"from":["GHSA-pppg-cpfq-h7wr"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:jsonpath-plus","vulnerableRanges":["<=6.0.1"],"patched":[],"from":["GHSA-pppg-cpfq-h7wr"],"provenance":"source"}],"summary":{"text":"The jsonpath-plus npm package, across all of its versions, contains a flaw where improper input sanitisation allows code to be injected through its evaluation path, which relies on the unsafe default use of Node's vm module. An attacker who can supply crafted input to the library can achieve arbitrary code execution on the host system, with the attack vector being network-reachable, requiring no privileges or user interaction, and with earlier partial fixes in versions 10.0.0 to 10.1.0 being bypassable using different payloads.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:55Z"},"euvd":{"id":"EUVD-2024-3103","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jsonpath-plus-cve-2024-21534","children":[{"from":"CVE-2024-21534","to":"CVE-2025-1302","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of eval='safe' mode. **Note:** This is caused by an incomplete fix for CVE-2024-21534.","from":"CVE.org","in":"CVE-2025-1302"},{"kind":"osv-related","provenance":"source","id":"GHSA-hw8r-x6gr-5gjp","via":"reference","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21534"},{"kind":"version-step","provenance":"source","package":"npm:jsonpath-plus","fromFixed":"10.2.0","toFixed":"10.3.0","daysApart":127},{"kind":"same-code","provenance":"machine","files":["badges/tests-badge.svg","dist/index-browser-esm.js","dist/index-browser-esm.min.js","dist/index-browser-esm.min.js.map","dist/index-browser-umd.cjs"],"commits":["https://github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3","https://github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8","https://github.com/JSONPath-Plus/JSONPath/commit/30942896d27cb8a806b965a5ca9ef9f686be24ee"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2024-21534","published":"2024-10-11","fixed":"10.2.0","kev":false},{"cve":"CVE-2025-1302","published":"2025-02-15","fixed":"10.3.0","kev":false}],"package":"npm:jsonpath-plus"}}