SB2026042854 - Code Injection in Windmill



SB2026042854 - Code Injection in Windmill

Published: April 28, 2026

Security Bulletin ID SB2026042854
Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Privilege escalation

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Code Injection (CVE-ID: CVE-2026-33881)

The vulnerability allows a remote user to inject arbitrary JavaScript code.

The vulnerability exists due to improper control of code generation in the NativeTS executor in backend/windmill-worker/src/worker.rs when interpolating workspace environment variable values into JavaScript string literals. A remote user can set a crafted workspace environment variable value containing a single quote to inject arbitrary JavaScript code.

The injected code executes inside every NativeTS script in the workspace as the executing user and can access reserved variables such as WM_TOKEN and WM_EMAIL.


Remediation

Install update from vendor's website.