Code injection in jsonpath-plus
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
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](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).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- 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 | all versions | — | No fix listed | CNA |
| — | org.webjars.npm:jsonpath-plus | all versions | — | No fix listed | CNA |
| — | jsonpath-plus (npm) | before 10.2.0 | 10.2.0 | Patch available | GHSA-pppg-cpfq-h7wr |
| — | org.webjars.npm:jsonpath-plus (Maven) | up to 6.0.1 | — | No fix listed | GHSA-pppg-cpfq-h7wr |
- jsonpath-plus Vendor— Affected all versions Fixed in — No fix listed CNA
- org.webjars.npm:jsonpath-plus Vendor— Affected all versions Fixed in — No fix listed CNA
- jsonpath-plus (npm) Vendor— Affected before 10.2.0 Fixed in 10.2.0 Patch available GHSA-pppg-cpfq-h7wr
- org.webjars.npm:jsonpath-plus (Maven) Vendor— Affected up to 6.0.1 Fixed in — No fix listed GHSA-pppg-cpfq-h7wr
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:jsonpath-plus:jsonpath:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:jsonpath-plus:jsonpath:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · GHSA-pppg-cpfq-h7wr jsonpath-plus (npm) Fixed in 10.2.0 Advisory →
Red Hat 2 advisories
- RHSA-2025:7626 Released 2025-05-14 · Red Hat rating ImportantRed Hat Developer Hub 1.6.0 release.
- Red Hat Developer Hub 1.6 registry.redhat.io/rhdh/rhdh-hub-rhel9
- RHSA-2024:10236 Released 2024-11-25 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.17.0 release
- Red Hat OpenShift Dev Spaces 3 devspaces/code-rhel8, devspaces/dashboard-rhel8, devspaces/udi-rhel8
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Data Science (RHODS) | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1.6 | Fixed | RHSA-2025:7626 |
| Red Hat OpenShift Dev Spaces 3 | Fixed | RHSA-2024:10236 |
Not affected: 5 products
- Red Hat Developer Hub 1
- Red Hat Developer Hub 1.6
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Data Science (RHODS)
- Red Hat OpenShift Dev Spaces 3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21534
- 2026-10-03 Alias added: GHSA-pppg-cpfq-h7wr
- 2026-10-27 Affected versions changed · Red Hat
References
Other 8
- https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0
- https://github.com/JSONPath-Plus/JSONPath/issues/226
- https://github.com/JSONPath-Plus/JSONPath/issues/226#issuecomment-2424230316
- https://github.com/JSONPath-Plus/JSONPath/pull/233
- https://github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3
- https://github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8
- https://github.com/JSONPath-Plus/JSONPath/commit/b70aa713553caf838a63bac923195a5bc541fd72
- https://github.com/JSONPath-Plus/JSONPath
Sources
- CVE-2024-21534 · CVE Program
- CVE-2024-21534 · NVD
- FIRST EPSS
- GHSA-pppg-cpfq-h7wr · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21534 · 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