---
id: CVE-2026-77413
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.0,
  the src/functions.js lookup function lacked an Object.prototype.hasOwnProperty
  check and allowed crafted expressions to access inherited prototype members.
  An…
severity: critical
cwe:
  - CWE-94
  - CWE-915
vendor: jsonata
product: jsonata
affected:
  - jsonata <= 1.8.7
  - 'jsonata >= 2.0.0, < 2.2.0'
patched:
  - jsonata 1.8.8
  - jsonata 2.2.0
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-77413'
references:
  - url: >-
      https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e
    label: security-advisories@github.com
  - url: >-
      https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d
    label: security-advisories@github.com
  - url: 'https://github.com/jsonata-js/jsonata/pull/794'
    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.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp
    label: security-advisories@github.com
  - url: >-
      https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-8gq3-vp5j-2grp'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77413.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-77413'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521208'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-77413'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77413'
tags:
  - nvd
  - ghsa
  - npm
  - csaf
  - vex
  - red-hat
epss: 0.00719
epssPercentile: 0.51817
aliases:
  - GHSA-8gq3-vp5j-2grp
ecosystem: npm
ingestedAt: '2026-08-21T21:22:19.432Z'
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.0, the src/functions.js lookup function lacked an Object.prototype.hasOwnProperty check and allowed crafted expressions to access inherited prototype members. An attacker able to supply an expression could use inherited prototype setters and getters, constructor access, valueOf, and process.getBuiltinModule to reach the child_process module and execute arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.0.

## Remediation

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

## Package advisory (CVE-2026-77413)

Affected packages:

- `jsonata <= 1.8.7`
- `jsonata >= 2.0.0, < 2.2.0`

Patched in:

- `jsonata 1.8.8`
- `jsonata 2.2.0`

Source: https://github.com/advisories/GHSA-8gq3-vp5j-2grp

## Vendor advisories

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