Skip to content
MediumVulnerability

GHSA-j2c8-v969-8r5c: Open WebUI: Sibling-Prefix Path Traversal via /cache/{path}

Published
Record updated
View JSON
Affected
  • open-webui <= 0.9.5
Fixed in
0.9.6
  • released June 1, 2026, 16 days before disclosure

Summary

Open WebUI's cache file serving endpoint, `serve_cache_file()` in `open_webui/main.py` at `/cache/{path:path}`, checks containment with `file_path.startswith(os.path.abspath(CACHE_DIR))` and omits a trailing `os.sep`. Any authenticated user with role `user` or `admin` can therefore read files from sibling directories whose names begin with `cache`, such as `cache_backup` or `cached_models`. Deep traversal and absolute paths are blocked, and the source reports the bypass as confirmed using open-webui 0.9.5.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.