Open WebUI just dropped version 0.9.5, and it's all about locking down outbound HTTP requests. The big addition? A redirect-based SSRF protection that blocks all 3xx redirects by default. That's the kind of plumbing most users won't see, but it's a critical defense against attackers trying to hop from public URLs into your internal network.
The core of this update is the AIOHTTP_CLIENT_ALLOW_REDIRECTS environment variable. Set to false by default, it tells the AIOHTTP client to refuse any 3xx redirect when making outbound HTTP calls. No more silently following a redirect from a legitimate-looking URL to a loopback address like 127.0.0.1, a cloud metadata endpoint like 169.254.169.254, or any RFC 1918 private IP. The fix affects all major call sites: web fetch operations, image loading, OAuth discovery flows, tool server execution, and even the code interpreter's login routine. That's a lot of ground covered.
Why redirects? Because SSRF attacks often abuse them. An attacker crafts a URL that first lands on an innocuous public server, which then redirects to an internal resource. Without this protection, Open WebUI's HTTP client would follow the redirect and potentially expose sensitive internal services or cloud instance metadata. Version 0.9.5 cuts that off at the knees.
SSRF vulnerabilities are a favorite among penetration testers. They let an attacker pivot from the internet into private networks, often with devastating results. Think: accessing databases, internal dashboards, or cloud metadata that contains credentials. By blocking redirects by default, Open WebUI is raising the bar without requiring users to configure anything. It's a sensible security posture shift.
Of course, some legitimate use cases rely on redirects. That's why the variable exists — if you need to follow them, you can set AIOHTTP_CLIENT_ALLOW_REDIRECTS to true. But the default is now safe. The team even included a reference to the specific commit (PR #24491) for those who want to dig into the implementation details.
This isn't flashy, but it's the kind of hardening that prevents whole classes of attacks. For anyone running Open WebUI in a production or semi-trusted environment, v0.9.5 is a no-brainer upgrade.
Official Source: https://github.com/open-webui/open-webui/releases/tag/v0.9.5