Loading...
Skip to main content

CVE-2024-51987 — Vulnerability in...

MEDIUM

HTTP Client uses incorrect token after refresh

Published November 7, 2024Updated November 8, 2024Source: osv

Summary

### Impact HTTP Clients created by `AddUserAccessTokenHttpClient` may use a different user's access token after a token refresh. This occurs because a refreshed token will be captured in pooled `HttpClient` instances, which may be used by a different user. ### Workarounds 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. ### Patches This issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1.

Advisory Timeline

  • First published November 7, 2024 (704 days ago).
  • Last revised November 8, 2024 — 1 day after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Duende.AccessTokenManagement.OpenIdConnect to 3.0.1 or later
dotnet add package Duende.AccessTokenManagement.OpenIdConnect --version 3.0.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: nuget (1).

PackageEcosystemAffectedFixed In
Duende.AccessTokenManagement.OpenIdConnect
nuget
3.0.03.0.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Frequently Asked Questions

What is CVE-2024-51987?
HTTP Client uses incorrect token after refresh This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
How do I check if my project is affected by CVE-2024-51987?
CVE-2024-51987 affects Duende.AccessTokenManagement.OpenIdConnect. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51987 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.4

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-7mr7-4f54-vcx5

Related CVEs

  • CVE-2026-106111
    MEDIUM

    ImageSharp: EXR ZIP decoder can expose stale allocator data after a short inflate

  • CVE-2026-65829
    MEDIUM

    MPXJ: Potential Path Traversal Vulnerability in Primavera P3 PRX and SureTrak STX readers

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies