SCA: security update for Duende.AccessTokenManagement (GHSA-qxj7-2x7w-3mpp)

medium Tenable Self-Hosted Container Security Plugin ID 420918

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Duende.AccessTokenManagement is a set of .NET libraries that manage OAuth and OpenId Connect access
tokens. Duende.AccessTokenManagement contains a race condition when requesting access tokens using the
client credentials flow. Concurrent requests to obtain an access token using differing protocol parameters
can return access tokens obtained with the wrong scope, resource indicator, or other protocol parameters.
Such usage is somewhat atypical, and only a small percentage of users are likely to be affected.
Duende.AccessTokenManagement can request access tokens using the client credentials flow in several ways.
In basic usage, the client credentials flow is configured once and the parameters do not vary. In more
advanced situations, requests with varying protocol parameters may be made by calling specific overloads
of these methods: `HttpContext.GetClientAccessTokenAsync()` and
`IClientCredentialsTokenManagementService.GetAccessTokenAsync()`. There are overloads of both of these
methods that accept a `TokenRequestParameters` object that customizes token request parameters. However,
concurrent requests with varying `TokenRequestParameters` will result in the same token for all concurrent
calls. Most users can simply update the NuGet package to the latest version. Customizations of the
`IClientCredentialsTokenCache` that derive from the default implementation
(`DistributedClientCredentialsTokenCache`) will require a small code change, as its constructor was
changed to add a dependency on the `ITokenRequestSynchronization` service. The synchronization service
will need to be injected into the derived class and passed to the base constructor. The impact of this
vulnerability depends on how Duende.AccessTokenManagement is used and on the security architecture of the
solution. Most users will not be vulnerable to this issue. More advanced users may run into this issue by
calling the methods specified above with customized token request parameters. The impact of obtaining an
access token with different than intended protocol parameters will vary depending on application logic,
security architecture, and the authorization policy of the resource servers. (CVE-2025-26620)

See Also

https://github.com/advisories/GHSA-qxj7-2x7w-3mpp

Plugin Details

Severity: Medium

ID: 420918

Version: Revision 1.21

Type: Local

Family: SCA Checks

Published: 2/19/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.82

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2025-26620

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/19/2025

Vulnerability Publication Date: 2/18/2025

Reference Information

CVE: CVE-2025-26620

cwe: CWE-367