CVE-2024-21534 — Vulnerability in jsonpath-plus — CVE Details
JSONPath Plus Remote Code Execution (RCE) Vulnerability
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 10.41% in 30 days. Address in your next planned sprint.
Does your project use an affected org.webjars.npm:jsonpath-plus version?
Paste your pom.xml to check it for CVE-2024-21534 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
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
Advisory Timeline
- First published October 11, 2024 (776 days ago).
- Last revised September 10, 2026 — 699 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install jsonpath-plus@10.2.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: Maven (1), npm (1).
| Package | Fixed In |
|---|---|
| org.webjars.npm:jsonpath-plus Maven · Affected: 3.0.0, 4.0.0, 6.0.1 | Range-based data available |
| jsonpath-plus npm · Affected: All versions | 10.2.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21534ADVISORY
- https://github.com/JSONPath-Plus/JSONPath/issues/226WEB
- https://github.com/JSONPath-Plus/JSONPath/issues/226#issuecomment-2424230316WEB
- https://github.com/JSONPath-Plus/JSONPath/pull/233WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8WEB
- https://github.com/JSONPath-Plus/JSONPath/commit/b70aa713553caf838a63bac923195a5bc541fd72WEB
- https://github.com/JSONPath-Plus/JSONPathPACKAGE
- https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8185019WEB
- https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884WEB
Frequently Asked Questions
- What is CVE-2024-21534?
- JSONPath Plus Remote Code Execution (RCE) Vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-21534?
- CVE-2024-21534 affects org.webjars.npm:jsonpath-plus and jsonpath-plus. It has a 10.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21534 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 96.5% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2025-1302HIGH
JSONPath Plus allows Remote Code Execution
- CVE-2019-11358MEDIUM
XSS in jQuery as used in Drupal, Backdrop CMS, and other products
- CVE-2021-41182MEDIUM
XSS in the `altField` option of the Datepicker widget in jquery-ui
- CVE-2021-41184MEDIUM
XSS in the `of` option of the `.position()` util in jquery-ui
- CVE-2020-11022MEDIUM
Potential XSS vulnerability in jQuery
- CVE-2022-31160MEDIUM
jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label
- CVE-2016-7103MEDIUM
jQuery-UI vulnerable to Cross-site Scripting in dialog closeText
- CVE-2021-41183MEDIUM
XSS in `*Text` options of the Datepicker widget in jquery-ui