Code injection in jsonpath-plus
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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](https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | jsonpath-plus | before 10.3.0 | 10.3.0 | Patch available | CNA |
| — | jsonpath-plus (npm) | before 10.3.0 | 10.3.0 | Patch available | GHSA-hw8r-x6gr-5gjp |
- jsonpath-plus Vendor— Affected before 10.3.0 Fixed in 10.3.0 Patch available CNA
- jsonpath-plus (npm) Vendor— Affected before 10.3.0 Fixed in 10.3.0 Patch available GHSA-hw8r-x6gr-5gjp
Remediation
- Fix · CNA jsonpath-plus Fixed in 10.3.0
- Fix · GHSA-hw8r-x6gr-5gjp jsonpath-plus (npm) Fixed in 10.3.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 1 product
- OpenShift Serverless
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1302
- 2026-10-03 Alias added: GHSA-hw8r-x6gr-5gjp
References
Advisory 2
Other 5
- https://gist.github.com/nickcopi/11ba3cb4fdee6f89e02e6afae8db6456
- https://github.com/JSONPath-Plus/JSONPath/blob/8e4acf8aff5f446aa66323e12394ac5615c3b260/src/Safe-Script.js%23L127
- https://github.com/JSONPath-Plus/JSONPath/commit/30942896d27cb8a806b965a5ca9ef9f686be24ee
- https://github.com/JSONPath-Plus/JSONPath
- https://github.com/JSONPath-Plus/JSONPath/blob/8e4acf8aff5f446aa66323e12394ac5615c3b260/src/Safe-Script.js#L127
Sources
- CVE-2025-1302 · CVE Program
- CVE-2025-1302 · NVD
- FIRST EPSS
- GHSA-hw8r-x6gr-5gjp · GitHub Advisory Database · CC BY 4.0
- CVE-2025-1302 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences