cve.bz

CVE-2024-21534 Code Injection

9.8 criticalEPSS 9.0%Fix available

Critical (9.8). EPSS 9.0% estimated probability of exploitation activity in the next 30 days. Fixed in jsonpath-plus 10.2.0.

On this page
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).

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
9.0% (unchanged from 9.0% a week ago; 9.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2024-10-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • jsonpath-plus (npm): fixed in 10.2.0

Ask an AI about this CVE

Show the promptExplain CVE-2024-21534 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-21534?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-21534?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-21534 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pppg-cpfq-h7wrnpmjsonpath-plus<10.2.010.2.0
GHSA-pppg-cpfq-h7wrMavenorg.webjars.npm:jsonpath-plus<=6.0.1no fix published

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat's initial impact rating of critical has been downgraded to low. While the vulnerable code is technically still present within Red Hat products, there are no code paths in affected products which allow exploitation. As such, the impact to Red Hat products is low.

Each of the products listed have multiple components where a fixed build could occur. This distinction does not matter for users as only one build needs fixed for the product. Additionally, in Red Hat OpenShift AI, jsonpath-plus is a dependency of a direct dependency and is never loaded, as the direct dependency's feature that requires jsonpath-plus is not used.

Red Hat's mitigation

Red Hat Product Security recommends updating the vulnerable software to the latest version.

ProductPackageStateAdvisory
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/code-rhel8:3.17-19Fixed 2024-11-25RHSA-2024:10236
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/dashboard-rhel8:3.17-25Fixed 2024-11-25RHSA-2024:10236
Red Hat Developer Hub 1.6rhdh/rhdh-hub-rhel9:1.6.0-1745956724Fixed 2025-05-14RHSA-2025:7626
Red Hat Developer Hub 1rhdh/rhdh-rhel9-operatorNot affected
Red Hat OpenShift AI (RHOAI)odh-dashboard-containerFix deferred
Red Hat OpenShift AI (RHOAI)odh-operator-containerNot affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-dashboard-rhel8Fix deferred
Red Hat OpenShift Data Science (RHODS)rhods/odh-operator-rhel8Not affected
Red Hat OpenShift Data Science (RHODS)rhods/odh-rhel8-operatorNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-21534.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON