Skip to main content
EPSS 0.7%top 48%

CVE-2026-77413: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js jsonata

0
Critical
Published: 08/21/2026 (08/21/2026, 20:47:08 UTC)
Source: CVE Database V5
Vendor/Project: jsonata-js
Product: jsonata

Description

CVE-2026-77413 is a critical code injection vulnerability in the jsonata-js library, affecting versions prior to 1.8.8 and 2.2.0. The flaw arises from the lookup function in src/functions.js lacking a proper hasOwnProperty check, allowing crafted expressions to access inherited prototype members. This enables an attacker who can supply expressions to execute arbitrary code with the privileges of the host process. The vulnerability is fixed in jsonata versions 1.8.8 and 2.2.0.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

jsonata-js

jsonata

Affected versions
<2.2.0
jsonata
pkg:npm/jsonata
Affected versions
<1.8.8<2.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 15:49:01 UTC

Technical Analysis

The jsonata-js library, used for JSON querying and transformation, contained a code injection vulnerability (CWE-94) in its lookup function before versions 1.8.8 and 2.2.0. The function did not properly check for Object.prototype.hasOwnProperty, allowing malicious expressions to access inherited prototype properties such as setters, getters, constructor, valueOf, and process.getBuiltinModule. This access path could be leveraged to reach the child_process module and execute arbitrary code with the host process's privileges. The issue is resolved by the vendor in versions 1.8.8 and 2.2.0.

Potential Impact

An attacker able to supply a crafted expression to the vulnerable jsonata-js library can execute arbitrary code on the host system with the same privileges as the process running jsonata. This represents a critical security risk, potentially leading to full system compromise.

Mitigation Recommendations

Upgrade jsonata-js to version 1.8.8 or later, or 2.2.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required according to the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-20T19:55:27.024Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a88be20acd9273b49bcc7b7

Added to database: 08/21/2026, 21:07:44 UTC

Last enriched: 09/10/2026, 15:49:01 UTC

Last updated: 10/05/2026, 18:48:22 UTC

Views: 95

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses