Files
windmill/backend/windmill-worker
Ruben FiszelandClaude Opus 5.5 3f46ff8118 fix(worker): escape contextual variables substituted into SQL string literals
%%WM_*%% contextual variables were substituted into SQL as raw text, so a
value carrying a quote (an end-user email such as x'/**/OR/**/'1'='1'--@e.com
in WM_END_USER_EMAIL) could break out of the surrounding string literal and
run with the app author's database credentials.

Escape each value for the dialect's single-quoted literal: '' for PostgreSQL,
MSSQL, Oracle and DuckDB; \\ plus '' for MySQL and Snowflake (a quoted email
local part can carry a backslash, which those dialects treat as an escape);
\\ plus \' for BigQuery, which does not accept ''.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 15:42:31 +02:00
..

Windmill Worker

The worker. Used to process and execute flows & jobs.

This crate exposes both a library as well as a binary target.