CVE-2026-77413: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js jsonata
A critical code injection vulnerability (CWE-94) exists in jsonata-js versions prior to 1.8.8 and 2.2.0. The vulnerability arises from the lookup function in src/functions.js lacking an Object.prototype.hasOwnProperty check, allowing crafted expressions to access inherited prototype members. This enables an attacker supplying a malicious expression to execute arbitrary code with the privileges of the host process. The issue is fixed in versions 1.8.8 and 2.2.0.
AI Analysis
Technical Summary
The jsonata-js library, a JSON query and transformation language, contained a code injection vulnerability in its lookup function before versions 1.8.8 and 2.2.0. The function did not properly check for own properties, allowing crafted expressions to access inherited prototype members such as setters, getters, constructor, valueOf, and process.getBuiltinModule. This chain allows an attacker to reach the child_process module and execute arbitrary code with the host process's privileges. This vulnerability is identified as CWE-94 and has a CVSS 4.0 score of 9.3, indicating critical severity. The vulnerability is fixed in versions 1.8.8 and 2.2.0.
Potential Impact
An attacker able to supply a malicious 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 can lead to full system compromise depending on the host process privileges. The vulnerability does not require user interaction or privileges to exploit and has a network attack vector, making it highly severe.
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 mitigations are specified. Patch status is not explicitly stated as 'patchAvailable' or 'official-fix' in the vendor advisory, but the description confirms the issue is fixed in these versions.
CVE-2026-77413: CWE-94: Improper Control of Generation of Code ('Code Injection') in jsonata-js jsonata
Description
A critical code injection vulnerability (CWE-94) exists in jsonata-js versions prior to 1.8.8 and 2.2.0. The vulnerability arises from the lookup function in src/functions.js lacking an Object.prototype.hasOwnProperty check, allowing crafted expressions to access inherited prototype members. This enables an attacker supplying a malicious expression to execute arbitrary code with the privileges of the host process. The issue is fixed in versions 1.8.8 and 2.2.0.
CVSS v4.0
Score 9.3critical
Affected software
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, a JSON query and transformation language, contained a code injection vulnerability in its lookup function before versions 1.8.8 and 2.2.0. The function did not properly check for own properties, allowing crafted expressions to access inherited prototype members such as setters, getters, constructor, valueOf, and process.getBuiltinModule. This chain allows an attacker to reach the child_process module and execute arbitrary code with the host process's privileges. This vulnerability is identified as CWE-94 and has a CVSS 4.0 score of 9.3, indicating critical severity. The vulnerability is fixed in versions 1.8.8 and 2.2.0.
Potential Impact
An attacker able to supply a malicious 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 can lead to full system compromise depending on the host process privileges. The vulnerability does not require user interaction or privileges to exploit and has a network attack vector, making it highly severe.
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 mitigations are specified. Patch status is not explicitly stated as 'patchAvailable' or 'official-fix' in the vendor advisory, but the description confirms the issue is fixed in these versions.
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
- Remediation Level
- null
Threat ID: 6a88be20acd9273b49bcc7b7
Added to database: 08/21/2026, 21:07:44 UTC
Last enriched: 08/21/2026, 21:22:11 UTC
Last updated: 08/21/2026, 21:33:22 UTC
Views: 6
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.