All reports
Medium

HTTP Client uses incorrect token after refresh

Affected versions

Affected versions
= 3.0.0
Fixed version
3.0.1

Exploitation

CVE-2024-51987

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-23

Description

Impact

HTTP Clients created by AddUserAccessTokenHttpClient may use a different user's access token after a token refresh. This occurs because a refreshed token will be captured in pooled HttpClient instances, which may be used by a different user.

Workarounds

Instead of using AddUserAccessTokenHttpClient to create an HttpClient that automatically adds a managed token to outgoing requests, you can use the HttpConext.GetUserAccessTokenAsync extension method or the IUserTokenManagementService.GetAccessTokenAsync method.

Patches

This issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1.

Links

Credits

  • natelaff