Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm

GHSA-vvvv-983w-r7pv

MEDIUMFix: workos/authkit-session@f56e1d6

GHSA-vvvv-983w-r7pv is a medium-severity (CVSS 4.3) Open Redirect vulnerability in @workos/authkit-session. O3 Security confirms whether GHSA-vvvv-983w-r7pv is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

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

Also known asCVE-2026-42565
Published
May 5, 2026
Updated
May 13, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed

Real-World Exposure

1 pkg affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.

@workos/authkit-sessionnpm
144Kdownloads / week

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. The handleCallback function decodes and returns returnPathname without enforcing restrictions on origin or scheme. As a result, attacker-controlled values (e.g., https://evil.com/, //evil.com, or similar variants) may be returned to the application.

If this value is used directly in a redirect (e.g., via an HTTP Location header, framework redirect helpers, or client-side navigation), it may cause the user to be redirected to an external, attacker-controlled site.

Security Impact This issue may be used to facilitate phishing or user redirection attacks by leveraging the trust of the originating domain. For example, an attacker could craft a link that directs a user through a legitimate authentication flow and then redirects them to an external site.

The severity depends on how returnPathname is used by the application. Exploitation requires:

  • The application to use returnPathname as a redirect target, and
  • The absence of downstream validation or allowlisting

This vulnerability does not enable authentication bypass, token disclosure, or direct account compromise on its own, but may increase the effectiveness of social engineering attacks when combined with user interaction.

Vulnerability Type CWE-601: URL Redirection to Untrusted Site (Open Redirect)

Patches Patched in https://github.com/workos/authkit-session/releases/tag/v0.5.1

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npm@workos/authkit-sessionall versions0.5.1

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @workos/authkit-session. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update @workos/authkit-session to 0.5.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vvvv-983w-r7pv is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-vvvv-983w-r7pv is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-vvvv-983w-r7pv. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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. The handleCallback function decodes and returns returnPathname without enforcing restrictions on origin or scheme. As a result, attacker-controlled values (e.g., `https://evil.com/`, `//evil.com`, or similar variants) may be returned to the application. If this value is used directly in a redirect (e.g., via an
O3 Security · Impact-Aware SCA

Is GHSA-vvvv-983w-r7pv in your dependencies?

O3 detects GHSA-vvvv-983w-r7pv across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.