Skip to main content
← All vulnerabilities
CVE-2024-51987GHSA-7MR7-4F54-VCX5

HTTP Client uses incorrect token after refresh in Duende.AccessTokenManagement.OpenIdConnect

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Duende.AccessTokenManagement.OpenIdConnect is a set of .NET libraries that manage OAuth and OpenId Connect access tokens. HTTP Clients created by `AddUserAccessTokenHttpClient` may use a different user's access token after a token refresh occurs. This occurs because a refreshed token will be captured in pooled `HttpClient` instances, which may be used by a different user. 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. This issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • DuendeSoftware Duende.AccessTokenManagement

    3.0.0

  • Duende.AccessTokenManagement.OpenIdConnectNuGet

    From 3.0.0 · fixed in 3.0.1

References 1

GitHub · DuendeSoftware/Duende.AccessTokenManagement