CVE-2026-59221: Open WebUI Path Traversal (v0.9.6-0.9.x)
Open WebUI, a self-hosted AI platform, contains a path traversal vulnerability in its terminal routing that allows authenticated users to access files and directories outside the intended sandbox. The vulnerability exists because the application only decodes percent-encoded URL paths eight times during normalization, but an attacker can craft a payload with nine levels of encoding to bypass this check and reach sensitive files on the server.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.7 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-22, CWE-918
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-09 / 2026-07-10
NVD description (verbatim)
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.9.6 before 0.10.0, _sanitize_proxy_path in backend/open_webui/routers/terminals.py decoded proxy paths only eight times, allowing a nine-times percent-encoded ../ traversal value to pass normalization checks and be decoded by the upstream terminal server. This issue is fixed in version 0.10.0.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the _sanitize_proxy_path function within backend/open_webui/routers/terminals.py. This function is responsible for normalizing and validating proxy paths before passing them to an upstream terminal server. The function decodes percent-encoded characters iteratively, but only performs eight iterations. An attacker with valid authentication credentials can bypass the normalization check by submitting a path encoded nine times (e.g., %252e%252e%252f repeated), which allows one additional level of decoding to occur in the upstream server, resulting in a valid ../ traversal sequence. This enables directory traversal attacks to read arbitrary files on the host system.
Business impact
An authenticated user can leverage this vulnerability to read sensitive configuration files, credentials, private keys, or other data stored on the Open WebUI server. For organizations using Open WebUI to expose AI capabilities, this could lead to exposure of system secrets, API keys, or user data stored in accessible directories. The impact is scoped to confidentiality; the vulnerability does not enable modification or deletion of data, but the reconnaissance capability is significant.
Affected systems
Open WebUI versions 0.9.6 through 0.9.x are vulnerable. Version 0.10.0 and later contain the fix. Any deployment of Open WebUI in the affected version range with network exposure and user authentication enabled is at risk.
Exploitability
Exploitation requires valid authentication credentials to access the platform, which raises the bar slightly compared to unauthenticated attacks. However, once authenticated, the attack is trivial to execute—it simply requires crafting a properly encoded URL with nine percent-encoding layers. No special tools, exploits, or user interaction are required beyond sending a malicious HTTP request. The attack surface is any authenticated user, including low-privilege accounts.
Remediation
Upgrade Open WebUI to version 0.10.0 or later immediately. The fix corrects the _sanitize_proxy_path function to properly validate and decode paths regardless of encoding depth, preventing traversal attacks. Organizations unable to upgrade immediately should restrict network access to the Open WebUI platform, limit authentication to trusted users, and monitor terminal access logs for suspicious path traversal patterns.
Patch guidance
Verify your current Open WebUI version and upgrade to 0.10.0 or later. Consult the official Open WebUI release notes and repository for installation instructions. For containerized deployments, update the image tag or digest. For source-based installations, pull the latest code from the official repository and restart the service. Verify the fix by reviewing the updated _sanitize_proxy_path function in the patched release.
Detection guidance
Monitor HTTP request logs for terminal routing endpoints with suspicious percent-encoded patterns, particularly sequences containing %2e%2e%2f (encoded ../) or repeated percent-encoding (e.g., %25 appearing multiple times). Review terminal access logs for attempts to traverse to unexpected directories or system paths. Log authentication events and correlate them with unusual API activity. Implement WAF rules to block requests with excessive percent-encoding layers in the path parameter.
Why prioritize this
This vulnerability merits urgent attention due to its HIGH CVSS score (7.7), cross-system scope impact, and requirement for only low-privileged authentication. While it does not enable code execution or service disruption, the ability to read arbitrary files via authenticated path traversal poses a significant confidentiality risk. Organizations with Open WebUI deployments exposed to untrusted networks or with multiple user accounts should treat this as a near-critical patch.
Risk score, explained
The CVSS 3.1 score of 7.7 reflects a network-accessible vulnerability (AV:N) with low complexity (AC:L) that requires only low-privileged authentication (PR:L). The impact is high confidentiality loss (C:H) with no integrity or availability impact (I:N/A:N). The scope is changed (S:C), meaning the vulnerability can affect resources beyond the vulnerable component, accounting for multi-tenant deployments and shared infrastructure. The score appropriately reflects a serious but not critical issue.
Frequently asked questions
Can unauthenticated users exploit this vulnerability?
No. The vulnerability requires valid authentication credentials to access the affected terminal routing endpoints. However, if your Open WebUI instance allows user self-registration or has weak access controls, this requirement may be less of a barrier.
Does this vulnerability allow remote code execution?
No. This is a file read vulnerability only. An attacker cannot execute commands or modify files. The impact is limited to confidentiality—reading files and data that may be accessible on the underlying filesystem.
What files are at risk if exploited?
Any files readable by the Open WebUI process user are potentially at risk, including environment variables, configuration files in parent directories, application secrets, SSH keys, API credentials, and other sensitive data stored on the server. The specific risk depends on your deployment's file permissions and what sensitive data is stored on the host.
Do I need to change authentication credentials after patching?
If you believe an attacker had time to read credential files before you patched, rotate any exposed secrets, API keys, and passwords. If you have audit logs showing no suspicious terminal access, the risk of exploitation may be lower, but rotation is still prudent for high-sensitivity credentials.
This analysis is based on publicly available vulnerability data and the vendor advisory. CVSS scoring and vulnerability details are provided as-is and should be verified against the official CVE record and Open WebUI release notes. No exploit code or weaponized proof-of-concept is provided. Organizations should perform their own risk assessment based on their specific deployment architecture, access controls, and exposure. This advisory does not constitute legal advice or a guarantee of security. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-54017HIGHOpen WebUI Terminal Proxy Path Traversal (v0.9.6 Fix)
- CVE-2026-54008HIGHOpen WebUI SSRF via OAuth Redirect Validation Bypass
- CVE-2026-54018HIGHOpen WebUI SSRF Bypass via HTTP Redirect Chain (0.9.6 Patch)
- CVE-2026-54014MEDIUMOpen WebUI Path Traversal – File Access Vulnerability
- CVE-2016-20076HIGHWordPress Simple-Backup 2.7.11 Unauthenticated File Access & Deletion Vulnerability
- CVE-2016-20081HIGHHB Audio Gallery Lite Path Traversal Vulnerability – Unauthenticated File Download
- CVE-2017-20248HIGHApptha Slider Gallery Path Traversal Vulnerability
- CVE-2017-20250HIGHMac Photo Gallery 3.0 Path Traversal File Download Vulnerability