CVE-2026-33881: CWE-94: Improper Control of Generation of Code ('Code Injection') in windmill-labs windmill
Windmill is an open-source developer platform for internal code: APIs, background jobs, workflows and UIs. Workspace environment variable values are interpolated into JavaScript string literals without escaping single quotes in the NativeTS executor. A workspace admin who sets a custom environment variable with a value containing `'` can inject arbitrary JavaScript that executes inside every NativeTS script in that workspace. This is a code injection bug in `worker.rs`, not related to the sandbox/NSJAIL topic. Version 1.664.0 patches the issue.
AI Analysis
Technical Summary
Windmill-labs windmill, an open-source developer platform, suffers from a CWE-94 improper code generation vulnerability due to unsafe interpolation of workspace environment variables into JavaScript string literals in the NativeTS executor. Specifically, single quotes in environment variable values are not escaped, enabling a workspace admin to inject arbitrary JavaScript code that executes in all NativeTS scripts within that workspace. This vulnerability exists in versions before 1.664.0 and is fixed in version 1.664.0. The CVSS 4.0 score is 7.3, indicating high severity, with network attack vector, low attack complexity, and no user interaction required.
Potential Impact
An attacker with workspace administrator privileges can exploit this vulnerability to execute arbitrary JavaScript code within the NativeTS execution environment of the affected windmill workspace. This could lead to unauthorized code execution, potentially compromising the integrity and confidentiality of the environment and any processes running within it. The vulnerability does not require user interaction and can be exploited remotely over the network by an authorized workspace admin.
Mitigation Recommendations
Upgrade windmill to version 1.664.0 or later, where this code injection vulnerability is patched. Since this is a vulnerability in the open-source software, applying the official fix is the recommended remediation. No additional mitigations are indicated by the vendor advisory.
CVE-2026-33881: CWE-94: Improper Control of Generation of Code ('Code Injection') in windmill-labs windmill
Description
Windmill is an open-source developer platform for internal code: APIs, background jobs, workflows and UIs. Workspace environment variable values are interpolated into JavaScript string literals without escaping single quotes in the NativeTS executor. A workspace admin who sets a custom environment variable with a value containing `'` can inject arbitrary JavaScript that executes inside every NativeTS script in that workspace. This is a code injection bug in `worker.rs`, not related to the sandbox/NSJAIL topic. Version 1.664.0 patches the issue.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Windmill-labs windmill, an open-source developer platform, suffers from a CWE-94 improper code generation vulnerability due to unsafe interpolation of workspace environment variables into JavaScript string literals in the NativeTS executor. Specifically, single quotes in environment variable values are not escaped, enabling a workspace admin to inject arbitrary JavaScript code that executes in all NativeTS scripts within that workspace. This vulnerability exists in versions before 1.664.0 and is fixed in version 1.664.0. The CVSS 4.0 score is 7.3, indicating high severity, with network attack vector, low attack complexity, and no user interaction required.
Potential Impact
An attacker with workspace administrator privileges can exploit this vulnerability to execute arbitrary JavaScript code within the NativeTS execution environment of the affected windmill workspace. This could lead to unauthorized code execution, potentially compromising the integrity and confidentiality of the environment and any processes running within it. The vulnerability does not require user interaction and can be exploited remotely over the network by an authorized workspace admin.
Mitigation Recommendations
Upgrade windmill to version 1.664.0 or later, where this code injection vulnerability is patched. Since this is a vulnerability in the open-source software, applying the official fix is the recommended remediation. No additional mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-24T15:10:05.681Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69c6ec5f3c064ed76ff25048
Added to database: 3/27/2026, 8:45:19 PM
Last enriched: 4/4/2026, 10:49:10 AM
Last updated: 5/11/2026, 11:52:39 PM
Views: 73
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.
External Links
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.