Description
JSONata is a JSON query and transformation language. Prior to 1.8.8 and 2.2.1, the src/jsonata.js environment.lookup function used a bypassable hasOwnProperty check. Crafted expressions could use $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, executing arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.1.
Published: 2026-08-21
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

JSONata is a JSON query and transformation language that allows data to be queried and restructured. In versions older than 1.8.8 and 2.2.1, the environment.lookup function contained a bypassable hasOwnProperty check. Attackers can craft expressions that use $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, thereby executing arbitrary code with the privileges of the host process. This flaw enables complete compromise of the application or environment in which the library runs.

Affected Systems

The vulnerability affects the jsonata-js jsonata library. Any deployment using the library prior to version 1.8.8 or version 2.2.1 is susceptible. No specific operating systems or languages are excluded; the issue exists wherever the vulnerable library is loaded and used to evaluate untrusted JSONata expressions.

Risk and Exploitability

The CVSS score of 9.3 classifies the flaw as high severity. EPSS data is not available, and the vulnerability is not listed in CISA's KEV catalog. The likely attack vector is remote: an attacker who can supply or influence a JSONata expression that the application evaluates will be able to trigger arbitrary code execution. Because the code runs with the host process's permissions, the impact could be complete system takeover or data exfiltration.

Generated by OpenCVE AI on August 21, 2026 at 22:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the jsonata library to version 1.8.8 or 2.2.1 where the environment.lookup function has been hardened.
  • Avoid evaluating untrusted JSONata expressions; restrict use to controlled inputs only.
  • If upgrading is not immediately possible, consider executing JSONata evaluations in a restricted sandbox or by disabling the environment.lookup function until the library is patched.

Generated by OpenCVE AI on August 21, 2026 at 22:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2943-5xfg-gq5f JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions
History

Fri, 21 Aug 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Jsonata-js
Jsonata-js jsonata
Vendors & Products Jsonata-js
Jsonata-js jsonata

Fri, 21 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
Description JSONata is a JSON query and transformation language. Prior to 1.8.8 and 2.2.1, the src/jsonata.js environment.lookup function used a bypassable hasOwnProperty check. Crafted expressions could use $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, executing arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.1.
Title JSONata: Arbitrary Code Execution via crafted JSONata expressions
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Jsonata-js Jsonata
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T20:51:43.500Z

Reserved: 2026-08-20T19:55:27.024Z

Link: CVE-2026-77414

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-21T21:17:07.410

Modified: 2026-08-21T21:17:07.410

Link: CVE-2026-77414

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T22:45:04Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')