@workos/authkit-session has an Open Redirect via state-derived redirect target
- Severity:
- Medium
Description
An open redirect vulnerability exists in AuthService.handleCallback due to insufficient validation of the returnPathname value derived from the OAuth state parameter.
The state parameter is round-tripped through the identity provider (IdP) and can be influenced by an attacker.
Recommendation
Update the @workos/authkit-session package to the latest compatible version. Followings are version details:
- Affected version(s): < 0.5.1
- Patched version(s): 0.5.1
References
Related Issues
- Waku has an Open Redirect via `unstable_redirect` Helper - CVE-2026-49456
- Nitro has an Open Redirect via Protocol-Relative URL Bypass in Wildcard Route Rules - CVE-2026-44372
- Nitro has an Open Redirect via Protocol-Relative URL Bypass in Wildcard Route Rules - nitro - CVE-2026-44372
- Feathers has an open redirect in OAuth callback enables account takeover - CVE-2026-27191
You might also like:
- Tags:
- npm
- @workos/authkit-session
Anything's wrong? Let us know Last updated on May 13, 2026


