Affected component: the chat-history message deletion helper in backend/open_webui/models/chats.py, reached from DELETE /api/v1/chats/{id}/messages/{message_id}. Affected setup: all builds from 0.10.0 up to and including 0.11.0.
Resolving the chat's new current message after a deletion means descending to the deepest remaining child, and that descent had no notion of where it had already been, so two messages naming each other as children sent it back and forth indefinitely. The write path does not validate the structure of a chat's history, and the child-link rebuild that runs on other write paths does not apply when a chat is created, so a history whose childrenIds form a cycle was persisted exactly as submitted.
Proof of concept
As a default-role user on a running instance, store one chat of roughly 300 bytes whose messages reference each other as children:
POST /api/v1/chats/new stores it verbatim, with the child links unchanged. A single DELETE /api/v1/chats/{id}/messages/C as the same user then never returns:
unauthenticated GET /health -> HTTP 000 after 10.007s
DELETE -> HTTP 000 after 20.007s
Sampled during the hang, the worker had consumed 42.9 seconds of CPU on one fully occupied core with flat resident memory, and unauthenticated GET /health timed out for as long as the process lived, including after the attacker's connection closed.
On 0.11.1 the same payload returns HTTP 200 in 0.011s, /health stays available throughout, and deleting a middle message from a well-formed four-message chain still resolves the current message correctly.
Credits
@Classic298, who found the unguarded descent through the chat's child links, demonstrated the resulting server-wide outage end to end against a live instance, and supplied the fix.