Vulnerability library
Security checkMay 13, 2026

@workos/authkit-session has an Open Redirect via state-derived redirect target

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for @workos/authkit-session has an Open Redirect via state-derived redirect target and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2026