{"answers":{"affected":"2 open source packages ship an affected version, including Duende.AccessTokenManagement.OpenIdConnect.","exploited":"There is no known exploitation of CVE-2024-51987 in the wild and no public exploit code.","fix":"Upgrade Duende.AccessTokenManagement.OpenIdConnect to 3.0.1 or later.","what":"CVE-2024-51987 is a medium-severity vulnerability in DuendeSoftware Duende.AccessTokenManagement, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-51987 and fix it if it is affected.\n\nWhat it is: CVE-2024-51987 is a medium-severity vulnerability in DuendeSoftware Duende.AccessTokenManagement, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-51987 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Duende.AccessTokenManagement.OpenIdConnect (NuGet): affected from 3.0.0; fixed in 3.0.1\n- Duende.AccessTokenManagement.OpenIdConnect (NuGet): affected from 3.0.0; fixed in 3.0.1\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-2024-51987/ (Markdown: https://insights.sbomify.com/CVE-2024-51987/index.md)","id":"CVE-2024-51987","markdown":"https://insights.sbomify.com/CVE-2024-51987/index.md","name":"CVE-2024-51987","record":{"aliases":["GHSA-7mr7-4f54-vcx5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Duende Access Token Library","requires_auth":"none","summary":"HTTP clients may use another user's access token after refresh, allowing unauthorized data access or account takeover.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-270","name":"Privilege Context Switching Error"}],"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.","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":"HTTP Client uses incorrect token after refresh in Duende.AccessTokenManagement.OpenIdConnect","id":"CVE-2024-51987","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"HTTP API's queue deletion endpoint does not verify that the user has a required permission","id":"CVE-2024-51988"},"packages":[{"ecosystem":"NuGet","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"Duende.AccessTokenManagement.OpenIdConnect","purl":null,"source":"GHSA-7mr7-4f54-vcx5"},{"ecosystem":"NuGet","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"Duende.AccessTokenManagement.OpenIdConnect","purl":"pkg:nuget/Duende.AccessTokenManagement.OpenIdConnect","source":"GHSA-7mr7-4f54-vcx5"}],"prev":{"headline":"Information disclosure in ADS-1700W","id":"CVE-2024-51984"},"products":["Duende.AccessTokenManagement"],"published":"2024-11-07","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-08","vendors":["DuendeSoftware"]},"summary":"HTTP clients may use another user's access token after refresh, allowing unauthorized data access or account takeover.","url":"https://insights.sbomify.com/CVE-2024-51987/"}