Intel

AIKIDO-2026-10059

supertokens-auth-react is vulnerable to Open Redirect

Open Redirect Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

61

Medium Risk

This Affects:

JSsupertokens-auth-react
0.38.0 - 0.51.0
Fixed in 0.51.1

TL;DR

Affected versions of this package are vulnerable to an Open Redirect via the redirectToPath query parameter, where setting a schemaless URL, such as //evil.com, would cause a redirection to an external malicious domain due to improper validation. An attacker could exploit this by crafting a phishing link that appears to originate from the trusted site to steal user credentials or deliver malware, which the patched code now mitigates by detecting and blocking schemaless URLs that begin with //.

Who does this affect?

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

Background info

supertokens-auth-react is vulnerable to Open Redirect in versions 0.38.0 - 0.51.0.

How to fix this

Upgrade the supertokens-auth-react library to a patch version.