Open WebUI: ReDoS in skill-mention regexes causes whole-instance DoS on default config
CVE-2026-59220 · GHSA-ffpj-xv5c-p3gw · published 2026-07-24
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.57%
- Fixed in
- 0.10.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
Two regexes in backend/openwebui/utils/middleware.py that parse skill-mention tags backtrack in O(n²) on input that contains . Both run synchronously, on the asyncio event loop, on every** chat completion with no feature gate. Because the default deployment is a single uvicorn worker, one such input pins a CPU core inside re and freezes the entire instance for all users until the worker is killed. Any authenticated user can trigger it with one chat message; it also fires accidentally on benign retrieved content (a RAG chunk or tool output) containing the pattern.
Upgrade open-webui to 0.10.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Rewrite the optional |label as a non-capturing optional group so the two quantifiers no longer overlap. Both patterns become linear; captures and substituted output are unchanged on well-formed , , and bare mentions. After the patch the same hostile input returns in under 1 ms. Shipped in v0.10.0.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| open-webui | PyPI | >= 0.9.2, < 0.10.0 | 0.10.0 |
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation@modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighFrame-count cap bypass in VideoMediaIO.load_base64 for video/jpeg via media_io_kwargs.video.num_framesvllm
- CriticalOpen WebUI has an LDAP Empty Password Authentication Bypassopen-webui
- HighTerminal users can manage Terminals policies and other users' terminals via the terminal proxyopen-webui
- HighAny authenticated user can steal another user's session token via script embedded in a DOCX previewopen-webui
- HighViewer session token theft via a script link in a shared chat's citationopen-webui
- HighAny website can steal a signed-in user's session token via the community stats message handleropen-webui
- HighOpen WebUI: Non-admin users can delete admin-owned external knowledge connections via knowledge base deletionopen-webui
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.