CVE-2026-1615
JSON

9.2critical

jsonpath has Arbitrary Code Injection via Unsafe Evaluation of JSON Path Expressions

Severity
9.2critical CVSS:4.0 by snyk
Exploit likelihood
1.78% (higher than 79% of CVEs)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-87r5-mp6g-5w5j

Description

Versions of the package jsonpath before 1.3.0 are vulnerable to Arbitrary Code Injection via unsafe evaluation of user-supplied JSON Path expressions. The library relies on the static-eval module to process JSON Path input, which is not designed to handle untrusted data safely. An attacker can exploit this vulnerability by supplying a malicious JSON Path expression that, when evaluated, executes arbitrary JavaScript code, leading to Remote Code Execution in Node.js environments or Cross-site Scripting (XSS) in browser contexts. This affects all methods that evaluate JSON Paths against objects, including .query, .nodes, .paths, .value, .parent, and .apply.

Affected

Product or packageVersionsReported by
jsonpathbefore 1.3.0CVE List
org.webjars.npm:jsonpathbefore *CVE List
ansible-automation-platform-25/lightspeed-rhel8Not specified
Not affected: from 1774446874 before *
CVE List
ansible-automation-platform-26/lightspeed-rhel9Not specified
Not affected: from 1774363040 before *, from 1787244079 before *
CVE List
rhdh/rhdh-hub-rhel9Not specified
Not affected: from 1775140647 before *
CVE List
migration-toolkit-virtualization/mtv-console-plugin-rhel9Not specifiedCVE List
mtv-candidate/mtv-console-plugin-rhel9Not specifiedCVE List
openshift-pipelines/pipelines-hub-api-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-hub-db-migration-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-hub-ui-rhel8Not specifiedCVE List
ansible-on-clouds/aoc-azure-aap-installer-rhel9Not specifiedCVE List
rhelai3/bootc-cuda-rhel9Not specifiedCVE List

All scores

snyk9.2critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
snyk9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
redhat-SADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Versions of the package jsonpath before 1.3.0 are vulnerable to Arbitrary Code Injection via unsafe evaluation of user-supplied JSON Path expressions. The library relies on the static-eval module to process JSON Path input, which is not designed to handle untrusted data safely. An attacker can exploit this vulnerability by supplying a malicious JSON Path expression that, when evaluated, executes arbitrary JavaScript code, leading to Remote Code Execution in Node.js environments or Cross-site Scripting (XSS) in browser contexts. This affects all methods that evaluate JSON Paths against objects, including .query, .nodes, .paths, .value, .parent, and .apply.

GitHub Advisory Database
Impact

Arbitrary Code Injection (Remote Code Execution & XSS):

A critical security vulnerability affects all versions of the jsonpath package. The library relies on the static-eval module to evaluate JSON Path expressions but fails to properly sanitize or sandbox the input.

This allows an attacker to inject arbitrary JavaScript code into the JSON Path expression. When the library evaluates this expression, the malicious code is executed.

  • Node.js Environments: This leads to Remote Code Execution (RCE), allowing an attacker to compromise the server.
  • Browser Environments: This leads to Cross-Site Scripting (XSS), allowing an attacker to hijack user sessions or exfiltrate data.

Affected Methods:

The vulnerability triggers when untrusted data is passed to any method that evaluates a path, including:

  • jsonpath.query
  • jsonpath.nodes
  • jsonpath.paths
  • jsonpath.value
  • jsonpath.parent
  • jsonpath.apply
Patches

No Patch Available:

Currently, all versions of jsonpath are vulnerable. There is no known patched version of this package that resolves the issue while retaining the current architecture.

Recommendation:

Developers are strongly advised to migrate to a secure alternative (such as jsonpath-plus or similar libraries that do not use eval/static-eval) or strictly validate all JSON Path inputs against a known allowlist.

Workarounds
  • Strict Input Validation: Ensure that no user-supplied data is ever passed directly to jsonpath functions.
  • Sanitization: If user input is unavoidable, implement a strict parser to reject any JSON Path expressions containing executable JavaScript syntax (e.g., parentheses (), script expressions script:, or function calls).
Resources
NVD (es)

Todas las versiones del paquete jsonpath son vulnerables a Inyección de Código Arbitrario a través de la evaluación insegura de expresiones JSON Path proporcionadas por el usuario. La biblioteca se basa en el módulo static-eval para procesar la entrada JSON Path, el cual no está diseñado para manejar datos no confiables de forma segura. Un atacante puede explotar esta vulnerabilidad al proporcionar una expresión JSON Path maliciosa que, al ser evaluada, ejecuta código JavaScript arbitrario, lo que lleva a Ejecución Remota de Código en entornos Node.js o Cross-site scripting (XSS) en contextos de navegador. Esto afecta a todos los métodos que evalúan JSON Paths contra objetos, incluyendo .query, .nodes, .paths, .value, .parent y .apply.

References

https://security.snyk.io/vuln/SNYK-JS-JSONPATH-13645034web
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15141219web
https://github.com/dchester/jsonpath/blob/c1dd8ec74034fb0375233abb5fdbec51ac317b4b/lib/handlers.js%23L243
https://github.com/dchester/jsonpath/commit/b61111f07ac1a8d0f3133b5fc51438ecb76a6c39web
https://access.redhat.com/security/cve/CVE-2026-1615vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2437875issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1615.json
https://access.redhat.com/errata/RHSA-2026:6308vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59155vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6309vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6802vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-1615advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-1615 changed 2026-08-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-87r5-mp6g-5w5j changed 2026-03-19CC-BY-4.0
NVDCVE-2026-1615 changed 2026-08-25Public domain