---
id: CVE-2026-77414
title: JSONata is a JSON query and transformation language
summary: >-
  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, protot…
severity: critical
cwe:
  - CWE-94
  - CWE-917
vendor: jsonata
product: jsonata
affected:
  - 'jsonata >= 2.0.0, < 2.2.1'
  - jsonata < 1.8.8
patched:
  - jsonata 2.2.1
  - jsonata 1.8.8
published: '2026-08-21'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:06:39.057'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77414'
references:
  - url: >-
      https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2
    label: security-advisories@github.com
  - url: 'https://github.com/jsonata-js/jsonata/pull/799'
    label: security-advisories@github.com
  - url: 'https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8'
    label: security-advisories@github.com
  - url: 'https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f
    label: security-advisories@github.com
  - url: >-
      https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://github.com/jsonata-js/jsonata/commit/c41ef185136a7b96ca1049c7745a7503b82193de
  - url: >-
      https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159
  - url: 'https://github.com/advisories/GHSA-2943-5xfg-gq5f'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77414.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-77414'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521203'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-77414'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77414'
tags:
  - nvd
  - ghsa
  - npm
  - csaf
  - vex
  - red-hat
epss: 0.0057
epssPercentile: 0.44767
aliases:
  - GHSA-2943-5xfg-gq5f
ecosystem: npm
ingestedAt: '2026-08-21T21:22:19.317Z'
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: vendor
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-77414)

Affected packages:

- `jsonata >= 2.0.0, < 2.2.1`
- `jsonata < 1.8.8`

Patched in:

- `jsonata 2.2.1`
- `jsonata 1.8.8`

Source: https://github.com/advisories/GHSA-2943-5xfg-gq5f

## Vendor advisories

- **Red Hat VEX** · Critical · updated 2026-09-23 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77414.json)
