All vulnerabilities

Servers and applications

CVE-2026-59220

ReDoS in skill-mention regexes causes whole-instance DoS on default config

Severity
Medium 6.5
Published
29 Jun 2026
Last changed
10 Jul 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.10.0
Exploit chance
0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-ffpj-xv5c-p3gw
Sources
NVD, Project advisories (GitHub)

Description

Two regexes in backend/open_webui/utils/middleware.py that parse <$skillId|label> skill-mention tags backtrack in O(n²) on input that contains <$ followed by a long run with no closing >. 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.

[^|>] is a subset of [^>], so the quantifier pair [^|>]+ |? [^>] is ambiguous: on input that never closes with >, [^|>]+ greedily consumes the tail, > fails, and the engine backtracks through every split point between [^|>]+ and [^>] — O(n) positions each doing O(n) work. Polynomial, not exponential, but more than enough to hang a single worker on a ~100 KB input.

From open-webui/open-webui's security advisory.

Affected software

SoftwareAffected versions
Open WebUIServers and applications · cpe:a:openwebui:open_webui
  • From 0.9.2 before 0.10.0
Open WebUIServers and applications · github:open-webui/open-webui
  • From 0.9.2 before 0.10.0

About Open WebUI

self-hosted user interface for artificial intelligence models

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
355,496PyPI Stats, 15 Nov 2026
Docker Hub pulls
990,663Docker Hub, 15 Nov 2026
GitHub stars
158,684GitHub, 15 Nov 2026
Forks
23,075GitHub, 15 Nov 2026
Latest release
v0.13.3GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
multi-licensingWikidata
First published on GitHub
6 Oct 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-59220
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-59220
  • GitHub Advisory Database https://github.com/advisories/GHSA-ffpj-xv5c-p3gw
  • github.com https://github.com/open-webui/open-webui/security/advisories/GHSA-ffpj-xv5c-p3gw