Intel

AIKIDO-2025-10261

Ocelot is vulnerable to Open Redirect

Open RedirectCVE-2024-39694 Published Apr 22, 2025

51

Medium Risk

This Affects:

DOTNETOcelot
13.0.0 - 23.4.3
Fixed in 24.0.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

Ocelot is vulnerable to Open Redirect in versions 13.0.0 - 23.4.3.

How to fix this

Upgrade the Ocelot library to the patch version.