$ the-wire · showcase
Fix SSRF redirect in OAuth picture fetch
By RepoJournal · Filed · About Open WebUI
Open WebUI patched a server-side request forgery in OAuth picture fetching by disabling redirect following.
A security fix landed in the OAuth picture fetch path [1]. _process_picture_url validated the initial URL with validate_url(), but aiohttp followed 3xx redirects without re-validating the target. A public URL that passed validation could redirect to an internal address, and the response body would be base64-stored in the user's profile_image_url. This was the sixth call site in the CVE-2026-45401 redirect-bypass cohort; the other five already pass allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRE... Now redirects are disabled, closing the SSRF vector.
Alongside the security fix, several dead frontend wrappers and their corresponding API endpoints were removed [2][3][4][5]. The generateFollowUps wrapper targeted a non-existent path, and follow-up suggestions are generated server-side. The bulk-clear-chat-tags endpoint, the lookup-prompt-by-command endpoint, and the server-side markdown rendering endpoint all had no callers; markdown is rendered client-side. These removals simplify the codebase without changing user-visible behavior.
Action items
- → Pull the latest open-webui commit before your next deploy to get the SSRF fix open-webui/open-webui [immediate]
- → Verify no external integrations depend on the removed DELETE /chats/{id}/tags/all, GET /prompts/command/{command}, or POST /api/v1/utils/markdown endpoints open-webui/open-webui [monitor]
References
- [1] fix: disable redirect following in OAuth picture fetch (SSRF) (#24809) ↗ open-webui/open-webui
- [2] refactor: remove dead generateFollowUps frontend wrapper (#24794) ↗ open-webui/open-webui
- [3] refactor: remove unused DELETE /chats/{id}/tags/all endpoint (#24785) ↗ open-webui/open-webui
- [4] refactor: remove unused GET /prompts/command/{command} endpoint (#24782) ↗ open-webui/open-webui
- [5] refactor: remove unused POST /api/v1/utils/markdown endpoint (#24779) ↗ open-webui/open-webui