{"id":"GHSA-pppg-cpfq-h7wr","summary":"JSONPath Plus Remote Code Execution (RCE) Vulnerability","details":"Versions of the package jsonpath-plus before 10.0.7 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.\n\n**Note:**\n\nThere 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)","aliases":["CVE-2024-21534"],"modified":"2026-02-04T04:07:13.334997Z","published":"2024-10-11T15:30:32Z","related":["CGA-645q-r7f9-6r3p"],"database_specific":{"severity":"CRITICAL","nvd_published_at":"2024-10-11T13:15:15Z","github_reviewed":true,"cwe_ids":["CWE-94"],"github_reviewed_at":"2024-10-14T16:27:22Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21534"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/issues/226"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/issues/226#issuecomment-2424230316"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/pull/233"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/commit/b70aa713553caf838a63bac923195a5bc541fd72"},{"type":"PACKAGE","url":"https://github.com/JSONPath-Plus/JSONPath"},{"type":"WEB","url":"https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8185019"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884"}],"affected":[{"package":{"name":"jsonpath-plus","ecosystem":"npm","purl":"pkg:npm/jsonpath-plus"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"10.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-pppg-cpfq-h7wr/GHSA-pppg-cpfq-h7wr.json"}},{"package":{"name":"org.webjars.npm:jsonpath-plus","ecosystem":"Maven","purl":"pkg:maven/org.webjars.npm/jsonpath-plus"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.0.1"}]}],"versions":["3.0.0","4.0.0","6.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-pppg-cpfq-h7wr/GHSA-pppg-cpfq-h7wr.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}