Skip to main content
EPSS 0.9%top 42%

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

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

Description

CVE-2026-77415 is a critical code injection vulnerability in the jsonata-js library, a JSON query and transformation language. Versions prior to 1.8.8 and 2.2.1 are affected. Crafted JSONata expressions could chain multiple object-integrity weaknesses to execute arbitrary code with the privileges of the host process. The vulnerability allows attackers to manipulate internal functions and access prototype and constructor properties, ultimately enabling code execution. This issue is fixed in versions 1.8.8 and 2.2.1.

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
<1.8.8>=2.0.0 <2.2.1
jsonata
pkg:npm/jsonata
Affected versions
<1.8.8<2.2.1

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:18 UTC

Technical Analysis

The vulnerability in jsonata-js (CVE-2026-77415) involves improper control of code generation (CWE-94). Attackers can craft JSONata expressions that exploit several object-integrity weaknesses, including overwriting $clone, exposing and deconstructing JSONata functions or lambdas, replacing proc.arguments.forEach used by applyProcedure, and forging internal lambda state. These primitives enable access to prototype getters, prototype and constructor properties, and process.getBuiltinModule with child_process, allowing arbitrary code execution with host process privileges. The flaw affects versions prior to 1.8.8 and 2.2.1 and is addressed by updates to these versions.

Potential Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the host system with the privileges of the process running jsonata-js. This can lead to full system compromise, data theft, or further attacks within the environment. The vulnerability is remotely exploitable without user interaction and requires no privileges, making it highly severe.

Mitigation Recommendations

A patch is available and should be applied immediately. Upgrade jsonata-js to version 1.8.8 or later, or 2.2.1 or later, as these versions contain the official fix for this vulnerability. No additional mitigation is required once the update is applied.

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
Is Cloud Service
true

Threat ID: 6a88be1bacd9273b49bcc6c7

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

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

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

Views: 147

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