mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #15339] Fix: GetUsers endpoint now requires Admin privileges #14279
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/jellyfin/jellyfin/pull/15339
Author: @Cody-Howell-Snow
Created: 11/1/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (3)
a126615Changed GetUsers endpoint to require admin access42d8baeTest completes if the new user tries to access GetUsers but is denied12b4f05CompleteStartupAsync was split to allow getting the access token from a new account without changing the signature or functionality of the first function.📊 Changes
3 files changed (+24 additions, -6 deletions)
View changed files
📝
Jellyfin.Api/Controllers/UserController.cs(+1 -1)📝
tests/Jellyfin.Server.Integration.Tests/AuthHelper.cs(+9 -5)📝
tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs(+14 -0)📄 Description
Summary
GetUsers endpoint was identified as a security vulnerability in #5415, which the breakoff issue #13990 suggests requiring Admin privileges to access.
Changes
GetUsers endpoint now requires admin access.
UserControllerTests now includes a test to validate the created user cannot access that endpoint.
AuthHelper had a method split to allow getting the access token of a particular user without changing the signature or function of
CompleteStartupAsync. The new method isTask<string> AuthenticateUserByNameAsync(HttpClient client, string username, string password).Issues
Fixes https://github.com/jellyfin/jellyfin/issues/13990
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.