CVE-2026-33881 Code injection in windmill
Workspace admins can inject arbitrary JavaScript into NativeTS scripts via unescaped environment variables, leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-33881?
CVE-2026-33881 is a high-severity code injection vulnerability in windmill-labs windmill, published on 27 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2026-33881?
It affects 1 product.
Products include Windmill Windmill.
How do I fix CVE-2026-33881?
No fix has been published for CVE-2026-33881 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-33881 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33881 exists.
Other vulnerabilities in windmill-labs windmill
Sources
Also known as GHSA-8q8j-mm3g-5c2q.