mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #14775] [MERGED] fix: verify trusted email header matches active user session #23588
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/14775
Author: @janaki-sasidhar
Created: 6/8/2025
Status: ✅ Merged
Merged: 6/9/2025
Merged by: @tjbck
Base:
dev← Head:fix/insecure-user-switching-when-trusted-email-header📝 Commits (2)
61f49fffix: ensure trusted email header matches logged-in user6860decfix: properly sign out user on trusted email mismatch📊 Changes
1 file changed (+15 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/auth.py(+15 -0)📄 Description
When using trusted email header authentication, verify that the logged-in user's email matches the value in the header. This prevents session conflicts when the OAuth server changes the authenticated user.
This change is important because:
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
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), 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.