Skip to content
HighVulnerability

GHSA-482j-2pq6-q5w4: Open WebUI: Jupyter code execution works despite `ENABLE_CODE_EXECUTION=false` — feature gate bypassed

Published
Record updated
View JSON
Affected
  • open-webui <= 0.8.11
Fixed in
0.8.12
  • released March 26, 2026, 48 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Open WebUI's `/api/v1/utils/code/execute` endpoint runs Python code through a connected Jupyter server for any verified user, even when the admin has set `ENABLE_CODE_EXECUTION=false`, because the endpoint never checks that flag. A proof of concept on v0.8.11 Docker, verified 2026-03-25, ran `os.popen("id")` and read internal secret service content, and the Jupyter container's network access to internal services also makes this an SSRF vector.

Mitigation

Fixed in commit 6d736d3c5, first released in v0.8.12. The `/api/v1/utils/code/execute` handler in `backend/open_webui/routers/utils.py` now checks `request.app.state.config.ENABLE_CODE_EXECUTION` before dispatching to the Jupyter engine and returns 403 with `FEATURE_DISABLED('Code execution')` when the flag is disabled. The retrieval-side code path was gated in the same commit. Users on `>= 0.8.12` are not affected.