# CVE-2024-51987: HTTP Client uses incorrect token after refresh in Duende.AccessTokenManagement.OpenIdConnect

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-11-07T21:57:52.000Z
- Modified: 2026-06-17T08:06:45.193Z
- Also known as: GHSA-7mr7-4f54-vcx5
- Weaknesses: CWE-270
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- DuendeSoftware Duende.AccessTokenManagement: = 3.0.0
- Duende.AccessTokenManagement.OpenIdConnect (NuGet): from 3.0.0 before 3.0.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/DuendeSoftware/Duende.AccessTokenManagement/security/advisories/GHSA-7mr7-4f54-vcx5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51987> (advisory)
- <https://github.com/DuendeSoftware/Duende.AccessTokenManagement/commit/09c73e32b182da5c6d7b55ec790cb2271cc4b63f> (web)
- <https://github.com/DuendeSoftware/Duende.AccessTokenManagement> (package)
- <https://github.com/DuendeSoftware/Duende.AccessTokenManagement/releases/tag/3.0.1> (web)

## Sources

- CVE List: [CVE-2024-51987](https://www.cve.org/CVERecord?id=CVE-2024-51987), CVE Terms of Use, modified 2024-11-08
- GitHub Advisory Database: [GHSA-7mr7-4f54-vcx5](https://github.com/advisories/GHSA-7mr7-4f54-vcx5), CC-BY-4.0, modified 2024-11-08
- NVD: [CVE-2024-51987](https://nvd.nist.gov/vuln/detail/CVE-2024-51987), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-51987 · Whole record: https://cve.day/CVE-2024-51987.json · Rebuilt by cve.day 2026-11-25T22:58:47.893Z
