CVE-2026-77413: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js 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
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 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.
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 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.