CVE-2026-42565: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in workos authkit-session
An open redirect vulnerability (CWE-601) exists in workos authkit-session versions prior to 0.5.1. The vulnerability arises from insufficient validation of the returnPathname value derived from the OAuth state parameter in the AuthService.handleCallback function. Because the state parameter is round-tripped through the identity provider and can be attacker-controlled, this may allow redirection to an external, attacker-controlled site. This issue is fixed in version 0.5.1.
AI Analysis
Technical Summary
CVE-2026-42565 describes an open redirect vulnerability in the workos authkit-session package before version 0.5.1. The vulnerability occurs in the AuthService.handleCallback method, which decodes and returns a returnPathname value derived from the OAuth state parameter without validating its origin or scheme. Since the state parameter is passed through the identity provider and can be influenced by an attacker, this lack of validation can lead to redirecting users to malicious external URLs. The vulnerability has a CVSS 3.1 base score of 4.3 (medium severity) and does not impact confidentiality or availability but can lead to limited integrity impact through redirection. The issue is resolved in version 0.5.1.
Potential Impact
The vulnerability allows an attacker to craft a malicious OAuth state parameter that causes the application to redirect users to an attacker-controlled external site. This can facilitate phishing or other social engineering attacks by misleading users. There is no direct impact on confidentiality or availability. The integrity impact is limited to the potential misuse of redirection.
Mitigation Recommendations
Upgrade workos authkit-session to version 0.5.1 or later, where this open redirect vulnerability is fixed. Since this is a client-side library, applying the official update is the recommended remediation. Patch status is confirmed by the vendor stating the issue is fixed in 0.5.1.
CVE-2026-42565: CWE-601: URL Redirection to Untrusted Site ('Open Redirect') in workos authkit-session
Description
An open redirect vulnerability (CWE-601) exists in workos authkit-session versions prior to 0.5.1. The vulnerability arises from insufficient validation of the returnPathname value derived from the OAuth state parameter in the AuthService.handleCallback function. Because the state parameter is round-tripped through the identity provider and can be attacker-controlled, this may allow redirection to an external, attacker-controlled site. This issue is fixed in version 0.5.1.
CVSS v3.1
Score 4.3medium
Affected software
pkg:github/workos/authkit-sessionRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42565 describes an open redirect vulnerability in the workos authkit-session package before version 0.5.1. The vulnerability occurs in the AuthService.handleCallback method, which decodes and returns a returnPathname value derived from the OAuth state parameter without validating its origin or scheme. Since the state parameter is passed through the identity provider and can be influenced by an attacker, this lack of validation can lead to redirecting users to malicious external URLs. The vulnerability has a CVSS 3.1 base score of 4.3 (medium severity) and does not impact confidentiality or availability but can lead to limited integrity impact through redirection. The issue is resolved in version 0.5.1.
Potential Impact
The vulnerability allows an attacker to craft a malicious OAuth state parameter that causes the application to redirect users to an attacker-controlled external site. This can facilitate phishing or other social engineering attacks by misleading users. There is no direct impact on confidentiality or availability. The integrity impact is limited to the potential misuse of redirection.
Mitigation Recommendations
Upgrade workos authkit-session to version 0.5.1 or later, where this open redirect vulnerability is fixed. Since this is a client-side library, applying the official update is the recommended remediation. Patch status is confirmed by the vendor stating the issue is fixed in 0.5.1.
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: 05/11/2026, 19:21:28 UTC
Last enriched: 05/19/2026, 10:55:00 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 113
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.