~ / search / GHSA-7mr7-4f54-vcx5

GHSA-7mr7-4f54-vcx5

HTTP Client uses incorrect token after refresh

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-51987

Packages

EcosystemPackageAffectedFixed in
NuGet Duende.AccessTokenManagement.OpenIdConnect >= 3.0.0, < 3.0.1 3.0.1

Details

As written in the advisory (Markdown source, shown as plain text).

### 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.

References

External links from the advisory. They lead to third-party sites.