CVE-2026-42565 Details
Description
@workos/authkit-session is a toolkit for building WorkOS AuthKit framework integrations. Prior to 0.5.1, 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 may be returned to the application. If this value is used directly in a redirect, it may cause the user to be redirected to an external, attacker-controlled site. This vulnerability is fixed in 0.5.1.
A moderate open redirect vulnerability has been identified in the WorkOS AuthKit Session toolkit, prior to version 0.5.1. The issue arises in the AuthService.handleCallback function, where the returnPathname value, derived from the OAuth state parameter, is insufficiently validated. This state parameter can be manipulated by attackers and is passed through the identity provider. The lack of restrictions on origin or scheme allows attacker-controlled URLs to be returned to the application. If these URLs are used directly for redirection, it could lead to users being sent to external, malicious sites, potentially facilitating phishing attacks.
Users can update to WorkOS AuthKit Session version 0.5.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 11, 2026CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/workos/authkit-session/commit/f56e1d6214a93160759e5677b7a3d772b244db39 | [email protected] | Source CodeVendor |
| https://github.com/workos/authkit-session/releases/tag/v0.5.1 | [email protected] | Release NotesVendor |
| https://github.com/workos/authkit-session/security/advisories/GHSA-vvvv-983w-r7pv | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| WorkOS AuthKit Session | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |
Volerion