Remote Code Execution in jsonpath-plus
CVE-2024-21534 is a remote code execution vulnerability in jsonpath-plus caused by improper input sanitization and unsafe use of the Node.js vm module during expression evaluation. Crafted JSONPath input can bypass evaluation restrictions and execute arbitrary code in the hosting Node.js environment. Remediation attempts in versions 10.0.0 through 10.1.0 remained exploitable using alternative payloads; version 10.2.0 is identified as a fixed npm release. Affected integrations include HCL Digital Experience 9.5 and bundled components in VMware Tanzu Platform and Red Hat OpenShift Dev Spaces.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary code execution with the privileges of the application running jsonpath-plus. This can compromise application-accessible data, credentials, and other resources, permit unauthorized modifications, and disrupt service availability. The extent of host or infrastructure compromise depends on the application's permissions and isolation. HCL Digital Experience 9.5 is identified as exploitable by an unauthenticated attacker.
If you can’t patch tonight, do this now.
Prevent untrusted JSONPath expressions from reaching the evaluator and restrict evaluation to trusted, static expressions. Run affected services with least privilege and strong isolation, and restrict network exposure to reduce the consequences of exploitation. For HCL Digital Experience, temporarily deny requests whose paths contain graphql through the HAProxy configuration and apply the change using a Helm upgrade; equivalent blocking at a custom ingress can provide the same restriction. These controls do not replace installation of a fixed release.
Patch, then assume compromise.
Upgrade the npm jsonpath-plus dependency to version 10.2.0 or later; versions 10.0.0 through 10.1.0 do not provide a complete fix. For bundled deployments, apply the relevant vendor update: Foundation Core for VMware Tanzu Platform 3.3.5, Red Hat OpenShift Dev Spaces 3.17, or an HCL Digital Experience cumulative fix containing DXQ-40422 when available. For the Maven WebJar org.webjars.npm:jsonpath-plus, versions through 6.0.1 are identified as affected, but no fixed WebJar version is specified; update or replace it with a verified non-vulnerable distribution.
1 exploit validated by Mallory's analysis.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.