CVE-2024-21534
CRITICAL 9.8CVSS 3.1JSONPath Plus Remote Code Execution (RCE) Vulnerability
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.
Note:
There were several attempts to fix it in versions 10.0.0-10.1.0 but it could still be exploited using different payloads.
- Published
- 11 Oct 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-pppg-cpfq-h7wr
- Sources
- NVDJSONOSV GHSA-pppg-cpfq-h7wrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | jsonpath-plus | < 10.2.0 | 10.2.0 |
| OSV | Maven | org.webjars.npm:jsonpath-plus | <= 6.0.1 |
References
- https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0 · WEB
- https://github.com/JSONPath-Plus/JSONPath/issues/226 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8185019 · WEB
- https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21534 · ADVISORY
- https://github.com/JSONPath-Plus/JSONPath/issues/226#issuecomment-2424230316 · WEB
- https://github.com/JSONPath-Plus/JSONPath/pull/233 · WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3 · WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8 · WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/b70aa713553caf838a63bac923195a5bc541fd72 · WEB
- https://github.com/JSONPath-Plus/JSONPath · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 11 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Oct 2024)