mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-02 06:39:02 -05:00
[PR #13258] [MERGED] Fix: Fixed a bug that caused user notification webhooks to never be sent #46184
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13258
Author: @choket
Created: 4/27/2025
Status: ✅ Merged
Merged: 4/28/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
8a9de0aFix bug that never triggers user notification webhooks📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+2 -2)📄 Description
Description
The
get_active_status_by_user_id()function returnsTrueorFalse, but in https://github.com/open-webui/open-webui/blob/main/backend/open_webui/utils/middleware.py on lines1136and2227, the result of this function is compared toNone, which always results inFalse, causing user notification webhooks to never be sent.Warning: This PR fixes the ability for users to create webhooks, which can be dangrous under certain conditions! This is known as an SSRF vulnerability. In this particular case the impact is very limited, but it is still classified as a security vulnerability. Please get in touch for more information.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.