CVE-2026-77414: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js jsonata
Description
CVE-2026-77414 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 contain a flaw in the environment.lookup function where a bypassable hasOwnProperty check allows crafted expressions to access the object prototype and execute arbitrary code via process.getBuiltinModule with child_process. This vulnerability enables attackers to execute code with the privileges of the host process. The issue is fixed in jsonata 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 exists in jsonata-js's environment.lookup function, which improperly controls code generation due to a bypassable hasOwnProperty check. Attackers can craft expressions using $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, leading to arbitrary code execution. This affects versions prior to 1.8.8 and 2.2.1. The vulnerability is identified as CWE-94 (Improper Control of Generation of Code).
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the host process running jsonata-js. This can lead to full system compromise depending on the host environment's privileges. The CVSS 4.0 score is 9.3 (critical), reflecting the high impact and ease of exploitation without user interaction or privileges.
Mitigation Recommendations
Upgrade jsonata-js to version 1.8.8 or later, or 2.2.1 or later, where this vulnerability is fixed. No other mitigations are indicated or required by the vendor advisory.
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: 6a88be20acd9273b49bcc7b9
Added to database: 08/21/2026, 21:07:44 UTC
Last enriched: 09/10/2026, 15:48:56 UTC
Last updated: 10/05/2026, 18:48:22 UTC
Views: 127
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.