CVE-2025-1302: JSONPath Plus allows Remote Code Execution
Versions of the package jsonpath-plus before 10.3.0 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 eval='safe' mode. Note: This is caused by an incomplete fix for CVE-2024-21534.
Published Feb 15, 2025 · Updated Feb 18, 2025
Affected packages
jsonpath-plus
- Ecosystem
- npm
- Affected
- < 10.3.0
- Fixed in
- 10.3.0
- Check
npm ls jsonpath-plus
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package jsonpath-plus before 10.3.0 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 eval='safe' mode.
Note:
This is caused by an incomplete fix for CVE-2024-21534.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-1302
- https://github.com/JSONPath-Plus/JSONPath/commit/30942896d27cb8a806b965a5ca9ef9f686be24ee
- https://gist.github.com/nickcopi/11ba3cb4fdee6f89e02e6afae8db6456
- https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-8719585
- https://nvd.nist.gov/vuln/detail/CVE-2024-21534
- https://github.com/JSONPath-Plus/JSONPath/blob/8e4acf8aff5f446aa66323e12394ac5615c3b260/src/Safe-Script.js#L127
- https://github.com/advisories/GHSA-hw8r-x6gr-5gjp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
