mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
/api/version/updates is publicly exposed with no authentication requirements #3558
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?
Originally created by @jamie1911 on GitHub (Feb 3, 2025).
Bug Report
Installation Method
Environment
Open WebUI Version: 0.5.7
Operating System: Ubuntu 24.04
Confirmation:
Expected Behavior:
If you curl the sites version while being an unauthenticated anonymous user, you get denied:
Actual Behavior:
Using an unauthenticated curl call, the server fetches information from github.com and then displays the current vs latest version.
Description
Bug Summary:
For sites that publicly expose their open-webui, unauthenticated requests should not be allowed to access API routes that cause the server to connect to third-party services. Allowing such calls could potentially trigger a DDoS scenario—either locally or by causing GitHub to rate-limit the outbound IP of the running instance(s). You can see an example of the affected code here:
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/main.py#L1075-L1077
Additionally, there is an information disclosure issue. Although displaying the version number is not inherently a security vulnerability, it does provide attackers with the specific version in use, which could help them quickly determine if there is an exploitable vulnerability.
This is also apparent in the
/api/versionroute:https://github.com/open-webui/open-webui/blob/main/backend/open_webui/main.py#L1058C11-L1062
@tjbck commented on GitHub (Feb 3, 2025):
c85ce07f92