Skip to content
MediumVulnerability

GHSA-ffpj-xv5c-p3gw: Open WebUI: ReDoS in skill-mention regexes causes whole-instance DoS on default config

Published
Record updated
View JSON
Affected
  • open-webui >= 0.9.2, < 0.10.0
Fixed in
0.10.0
  • released June 29, 2026, 25 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

Two regexes in backend/open_webui/utils/middleware.py that parse <$skillId|label> skill-mention tags backtrack in O(n²) on input containing <$ followed by a long run without a closing >. Both run synchronously on the asyncio event loop for every chat completion with no feature gate, so with the default single uvicorn worker any authenticated user can freeze the whole instance with one chat message. Affected versions are >= 0.9.2 and < 0.10.0, with v0.9.6 especially vulnerable to a small input.

Mitigation

Fixed in v0.10.0. The patch rewrites the optional |label as a non-capturing optional group: SKILL_MENTION_RE = re.compile(r'<\$([^|>]+)(?:\|[^>]*)?>') and strip_re = re.compile(r'<\$[^|>]+(?:\|([^>]*))?>').