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

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T20:34:32.606Z
- Modified: 2026-06-17T10:38:15.030Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- windmill-labs windmill: < 1.664.0
- windmill windmill: before 1.664.0

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/windmill-labs/windmill/security/advisories/GHSA-8q8j-mm3g-5c2q> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-33881](https://www.cve.org/CVERecord?id=CVE-2026-33881), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-33881](https://nvd.nist.gov/vuln/detail/CVE-2026-33881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33881 · Whole record: https://cve.day/CVE-2026-33881.json · Rebuilt by cve.day 2026-11-25T22:59:17.436Z
