# CVE-2026-87013: Open WebUI infinite loop via folder parent cycle

Source: https://junglewise.ai/threats/cve-2026-87013-open-webui-infinite-loop-via-folder-parent-cycle  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-09. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-87013 · Severity: medium · CVSS 4.3 · Published 2026-09-09

Open WebUI's folder management feature allows authenticated users to organize documents and conversations into folders. An attacker can exploit a missing validation in the folder-move operation to create a circular folder structure (a folder parented to itself). This causes subsequent folder operations to hang indefinitely in an infinite loop, consuming CPU and memory resources. While the application remains responsive to other users in the short term, sustained attacks or unattended instances degrade over hours, potentially leading to service unavailability.

Technologies: [open-webui (PyPI)](https://junglewise.ai/threats/technologies/open-webui). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-87013 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-87013 being exploited in the wild.

**How severe is CVE-2026-87013?** Medium severity, with a CVSS score of 4.3, published 9 September 2026.

**Which products and versions are affected?** open-webui (PyPI) >= 0.10.0, <= 0.11.0, ECOSYSTEM:introduced=0.10.0,fixed=0.11.1.

**Is there a fix for CVE-2026-87013?** Yes. open-webui (PyPI): upgrade to 0.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-87013 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-87013?** Check whether you run open-webui (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- open-webui (PyPI): upgrade to 0.11.1 or later

  ```sh
  pip install "open-webui>=0.11.1"
  ```


## Technical details

The vulnerability is a classic infinite loop triggered by missing cycle detection in a hierarchical data structure. The folder re-parent endpoint (`POST /api/v1/folders/{id}/update/parent`) fails to validate that the target parent is not the folder itself or one of its descendants. The folder model's subtree traversal functions (`DELETE` and `POST /read` endpoints) do not track visited folders, so they infinitely recurse when encountering a cycle. Attack preconditions: authentication required, folders feature enabled (default), user role must have folders permission (default true). An attacker needs only a standard account—no admin or special permissions. The fix in 0.11.1 adds validation to reject self-parenting with a 400 response, implements visited-set tracking in tree walks, and returns looped folders to root on next access. Affected versions: 0.10.0 through 0.11.0 (the subtree walk feature was introduced in 0.10.0).

## Affected products

- open-webui Open WebUI 0.10.0 to 0.11.0

## Identifiers

- CVE-2026-87013
- GHSA-8r35-5x5r-hv74
- PYSEC-2026-4121

## Timeline

- 2026-09-04: disclosed: Advisory published by GitHub (initial date)
- 2026-09-09: patched: Fix released in version 0.11.1
- 2026-09-10: advisory: GitHub Security Advisory GHSA-8r35-5x5r-hv74 published

## References

- [https://api.github.com/users/luida-ikura](https://api.github.com/users/luida-ikura)
- [https://github.com/luida-ikura](https://github.com/luida-ikura)
- [https://api.github.com/users/luida-ikura/gists%7B/gist_id%7D](https://api.github.com/users/luida-ikura/gists%7B/gist_id%7D)
- [https://api.github.com/users/luida-ikura/repos](https://api.github.com/users/luida-ikura/repos)
- [https://avatars.githubusercontent.com/u/228410585?v=4](https://avatars.githubusercontent.com/u/228410585?v=4)
- [https://api.github.com/users/luida-ikura/events%7B/privacy%7D](https://api.github.com/users/luida-ikura/events%7B/privacy%7D)

## Related threats

- [Open WebUI OAuth token exchange authorization bypass](https://junglewise.ai/threats/cve-2026-88006-open-webui-oauth-token-exchange-authorization-bypass)
- [Open WebUI OAuth token exchange authorization bypass](https://junglewise.ai/threats/cve-2026-88005-open-webui-oauth-token-exchange-authorization-bypass)
- [Open WebUI infinite loop denial of service in chat history reconstruction](https://junglewise.ai/threats/cve-2026-88002-open-webui-infinite-loop-denial-of-service-in-chat-history)
- [Open WebUI server-side request forgery via unvalidated HTTP redirects](https://junglewise.ai/threats/cve-2026-88001-open-webui-server-side-request-forgery-via-unvalidated-http)
- [Open WebUI denial of service via cyclic chat tree message deletion](https://junglewise.ai/threats/cve-2026-88000-open-webui-denial-of-service-via-cyclic-chat-tree-message)
