CVE-2026-77415: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js 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
Affected software
jsonata-js
jsonata
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.