Ocelot is vulnerable to Open Redirect
51
Medium Risk
Affected versions of this package rely on IdentityServer4, which is known to be vulnerable to open redirect attacks. Methods such as GetAuthorizationContextAsync and IsValidReturnUrl may return non-null or true for malicious URLs, enabling redirection to untrusted sites. Less commonly used methods, including ServerUrlExtensions.GetIdentityServerRelativeUrl, ReturnUrlParser.ParseAsync, and OidcReturnUrlParser.ParseAsync, are also affected by similar flaws. The issue is addressed in the fixed version by uninstalling IdentityServer4 packages and disabling related functionality.
You are affected if you are using a version that falls within the vulnerable range.
Ocelot is vulnerable to Open Redirect in versions 13.0.0 - 23.4.3.
Upgrade the Ocelot library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant