HTTP Client uses incorrect token after refreshGHSA-7mr7-4f54-vcx5
MEDIUMFix: DuendeSoftware/Duende.AccessTokenManagement@09c73e3GHSA-7mr7-4f54-vcx5 is a medium-severity (CVSS 5.4) CWE-270 vulnerability in Duende.AccessTokenManagement.OpenIdConnect. A fix is available for Duende.AccessTokenManagement.OpenIdConnect — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-7mr7-4f54-vcx5.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
Duende.AccessTokenManagement.OpenIdConnectReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Duende.AccessTokenManagement.OpenIdConnect | ≥ 3.0.0&&< 3.0.1 | 3.0.1dotnet add package Duende.AccessTokenManagement.OpenIdConnect --version 3.0.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Duende.AccessTokenManagement.OpenIdConnect, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Duende.AccessTokenManagement.OpenIdConnect to 3.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7mr7-4f54-vcx5 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-7mr7-4f54-vcx5 in your dependencies?
Find it across NuGet, including transitive dependencies.