CVE-2026-42565: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in workos authkit-session
@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.
AI Analysis
Technical Summary
The workos authkit-session toolkit before version 0.5.1 contains an open redirect vulnerability (CWE-601) in the AuthService.handleCallback function. The function decodes and returns a returnPathname value derived from the OAuth state parameter without enforcing origin or scheme restrictions. Since the state parameter is round-tripped through the identity provider and can be attacker-controlled, this allows an attacker to manipulate the redirect destination, potentially redirecting users to malicious external sites. The vulnerability has a CVSS 3.1 base score of 4.3 (medium severity) and does not impact confidentiality or availability but can cause limited integrity impact. The issue is resolved in version 0.5.1.
Potential Impact
This vulnerability can lead to users being redirected to attacker-controlled external websites if the vulnerable returnPathname value is used directly in redirects. This may facilitate phishing or other social engineering attacks by misleading users about the destination of a redirect. There is no direct impact on confidentiality or availability. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade workos authkit-session to version 0.5.1 or later, where the open redirect vulnerability is fixed. Since the vendor has released a fixed version, applying this official update is the recommended remediation. Patch status is confirmed by the versioning information in the advisory. No additional mitigations are indicated.
CVE-2026-42565: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in workos authkit-session
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The workos authkit-session toolkit before version 0.5.1 contains an open redirect vulnerability (CWE-601) in the AuthService.handleCallback function. The function decodes and returns a returnPathname value derived from the OAuth state parameter without enforcing origin or scheme restrictions. Since the state parameter is round-tripped through the identity provider and can be attacker-controlled, this allows an attacker to manipulate the redirect destination, potentially redirecting users to malicious external sites. The vulnerability has a CVSS 3.1 base score of 4.3 (medium severity) and does not impact confidentiality or availability but can cause limited integrity impact. The issue is resolved in version 0.5.1.
Potential Impact
This vulnerability can lead to users being redirected to attacker-controlled external websites if the vulnerable returnPathname value is used directly in redirects. This may facilitate phishing or other social engineering attacks by misleading users about the destination of a redirect. There is no direct impact on confidentiality or availability. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade workos authkit-session to version 0.5.1 or later, where the open redirect vulnerability is fixed. Since the vendor has released a fixed version, applying this official update is the recommended remediation. Patch status is confirmed by the versioning information in the advisory. No additional mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T17:26:12.084Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a022c38cbff5d86104f7cc7
Added to database: 5/11/2026, 7:21:28 PM
Last enriched: 5/11/2026, 7:38:32 PM
Last updated: 5/12/2026, 3:48:30 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.