{"id":"CVE-2024-51987","published":"2024-11-07T23:36:16Z","modified":"2024-11-08T15:57:51Z","title":"HTTP Client uses incorrect token after refresh in Duende.AccessTokenManagement.OpenIdConnect","vendor":"DuendeSoftware","product":"Duende.AccessTokenManagement","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00444,"percentile":0.30446,"provenance":"source"},"cwes":[{"id":"CWE-270","name":"Privilege Context Switching Error"}],"references":[{"url":"https://github.com/DuendeSoftware/Duende.AccessTokenManagement/security/advisories/GHSA-7mr7-4f54-vcx5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":6.09},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"duendesoftware","affectedVersions":[{"vendor":"DuendeSoftware","product":"Duende.AccessTokenManagement","versions":["= 3.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-08T15:57:43.125942Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Duende.AccessTokenManagement.OpenIdConnect","vulnerableRanges":[">=3.0.0, <3.0.1"],"patched":["3.0.1"],"from":["GHSA-7mr7-4f54-vcx5"],"provenance":"source"}],"summary":{"text":"The Duende.AccessTokenManagement.OpenIdConnect .NET libraries, which manage OAuth and OpenID Connect access tokens, have a flaw in HTTP clients created by AddUserAccessTokenHttpClient: after a token refresh, a refreshed token can remain cached in pooled HttpClient instances and be reused for a different user. An attacker can exploit this over the network with no privileges, but it requires a victim user to interact with the application, and the result is limited exposure of confidential data and integrity impact on the affected requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:15Z"},"euvd":{"id":"EUVD-2024-3212","exploited":false,"provenance":"source"}}