{"answers":{"affected":"2 open source packages ship an affected version, including IdentityServer4.","exploited":"There is no known exploitation of GHSA-55p7-v223-x366 in the wild and no public exploit code.","fix":"No fix has been published for GHSA-55p7-v223-x366 yet. Limit exposure of the affected software until one is available.","what":"GHSA-55p7-v223-x366 is a vulnerability in IdentityServer4, published on 31 Jul 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 GHSA-55p7-v223-x366 and fix it if it is affected.\n\nWhat it is: GHSA-55p7-v223-x366 is a vulnerability in IdentityServer4, published on 31 Jul 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 GHSA-55p7-v223-x366 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- IdentityServer4 (NuGet): affected all versions up to 4.1.2; no fix listed\n- IdentityServer4 (NuGet): affected all versions up to 4.1.2; no fix listed\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/GHSA-55p7-v223-x366/ (Markdown: https://insights.sbomify.com/GHSA-55p7-v223-x366/index.md)","id":"GHSA-55p7-v223-x366","markdown":"https://insights.sbomify.com/GHSA-55p7-v223-x366/index.md","name":"GHSA-55p7-v223-x366","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"IdentityServer library","requires_auth":"none","summary":"Attackers can craft malicious URLs that IdentityServer incorrectly treats as trusted, redirecting users to untrusted third-party sites.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nIt is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a redirect, some browsers will follow it to a third-party, untrusted site.\n\n### Affected Methods\n- In the `DefaultIdentityServerInteractionService`, the `GetAuthorizationContextAsync` method may return non-null and the `IsValidReturnUrl` method may return true for malicious Urls, indicating incorrectly that they can be safely redirected to.\n\n   _UI code calling these two methods is the most commonly used code path that will expose the vulnerability. The default UI templates rely on this behavior in the Login, Challenge, and Consent pages. Customized user interface code might also rely on this behavior. The following uncommonly used APIs are also vulnerable:_\n\n- The `ServerUrlExtensions.GetIdentityServerRelativeUrl`, `ReturnUrlParser.ParseAsync` and `OidcReturnUrlParser.ParseAsync`  methods may incorrectly return non-null, and the `ReturnUrlParser.IsValidReturnUrl` and `OidcReturnUrlParser.IsValidReturnUrl` methods may incorrectly return true for malicious Urls.\n\n### Patches\nIdentityServer4 is no longer supported and will not be receiving updates. Please consider updating to [Duende.IdentityServer](https://duendesoftware.com).","ecosystems":["NuGet"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"IdentityServer Open Redirect vulnerability","id":"GHSA-55p7-v223-x366","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"open_redirect","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["4.1.2"],"package":"IdentityServer4","purl":null,"source":"GHSA-55p7-v223-x366"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["4.1.2"],"package":"IdentityServer4","purl":"pkg:nuget/IdentityServer4","source":"GHSA-55p7-v223-x366"}],"products":null,"published":"2024-07-31","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can craft malicious URLs that IdentityServer incorrectly treats as trusted, redirecting users to untrusted third-party sites.","url":"https://insights.sbomify.com/GHSA-55p7-v223-x366/"}