CVE-2024-51987 json
HTTP Client uses incorrect token after refresh in Duende.AccessTokenManagement.OpenIdConnect
published 2024-11-07 2 y ago modified 2026-06-17 4 mo ago also GHSA-7mr7-4f54-vcx5 , EUVD-2024-3212
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
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.
Patch / fix
- nuget Duende.AccessTokenManagement.OpenIdConnect 3.0.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Duende.AccessTokenManagement.OpenIdConnect | >=3.0.0, <3.0.1 |
3.0.1 |
Affected products
- DuendeSoftware Duende.AccessTokenManagement
Classification
- Weakness
-
- CWE-270 Privilege Context Switching Error
References
-
github.com
/DuendeSoftware/Duende.AccessTokenManagement/commit/09c73e32b182da5c6d7b55ec790cb2271cc4b63f
web
-
github.com
/DuendeSoftware/Duende.AccessTokenManagement/security/advisories/GHSA-7mr7-4f54-vcx5
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-51987
advisory
-
github.com
/DuendeSoftware/Duende.AccessTokenManagement
package
-
github.com
/DuendeSoftware/Duende.AccessTokenManagement/releases/tag/3.0.1
web
Sources
- CVE List CVE-2024-51987
- GitHub Advisory GHSA-7mr7-4f54-vcx5
- NVD CVE-2024-51987
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.