mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 11:58:31 -05:00
[PR #24518] [MERGED] chore: add validate_url() to get_image_data() for cohort consistency hardening #82574
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24518
Author: @Classic298
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/10/2026
Merged by: @tjbck
Base:
dev← Head:chore/get-image-data-validate-url-hardening📝 Commits (2)
20d54adchore: add validate_url() to get_image_data() for cohort consistency hardeningf5ff199chore: trim comment📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+2 -0)📄 Description
get_image_data()inbackend/open_webui/routers/images.pyfetches the URL returned by the configured image generation API directly viasession.get(data)without first callingvalidate_url(). The siblingload_url_image()in the same file (called from /images/edit) callsvalidate_url(data)first — that gate was added under GHSA-jgx9-jr5x-mvpv. The two functions handle structurally identical input (an attacker-or-server-supplied URL string) and should enforce the same SSRF gate as a matter of code hygiene.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.