{"answers":{"affected":"2 open source packages ship an affected version, including Duende.AccessTokenManagement.","exploited":"There is no known exploitation of CVE-2025-26620 in the wild and no public exploit code.","fix":"Upgrade Duende.AccessTokenManagement to 3.2.0 or later.","what":"CVE-2025-26620 is a medium-severity vulnerability in DuendeSoftware foss, published on 18 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-26620 and fix it if it is affected.\n\nWhat it is: CVE-2025-26620 is a medium-severity vulnerability in DuendeSoftware foss, published on 18 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-26620 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Duende.AccessTokenManagement (NuGet): affected all versions; fixed in 3.2.0\n- Duende.AccessTokenManagement (NuGet): affected all versions; fixed in 3.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-26620/ (Markdown: https://insights.sbomify.com/CVE-2025-26620/index.md)","id":"CVE-2025-26620","markdown":"https://insights.sbomify.com/CVE-2025-26620/index.md","name":"CVE-2025-26620","record":{"aliases":["GHSA-qxj7-2x7w-3mpp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":".NET OAuth library","requires_auth":"none","summary":"Concurrent requests with varying parameters may return incorrect access tokens, potentially bypassing security controls in advanced .NET OAuth implementations.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"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.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Duende.AccessTokenManagement race condition when concurrently retrieving customized Client Credentials Access Tokens","id":"CVE-2025-26620","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"OpenCTI vulnerable to Denial of Service through web hook","id":"CVE-2025-26621"},"packages":[{"ecosystem":"NuGet","fixed":["3.2.0"],"introduced":["0"],"last_affected":[],"package":"Duende.AccessTokenManagement","purl":null,"source":"GHSA-qxj7-2x7w-3mpp"},{"ecosystem":"NuGet","fixed":["3.2.0"],"introduced":["0"],"last_affected":[],"package":"Duende.AccessTokenManagement","purl":"pkg:nuget/Duende.AccessTokenManagement","source":"GHSA-qxj7-2x7w-3mpp"}],"prev":{"headline":"Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode `expressionInterpeter`","id":"CVE-2025-26619"},"products":["foss"],"published":"2025-02-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-18","vendors":["DuendeSoftware"]},"summary":"Concurrent requests with varying parameters may return incorrect access tokens, potentially bypassing security controls in advanced .NET OAuth implementations.","url":"https://insights.sbomify.com/CVE-2025-26620/"}