@workos/authkit-session: Open Redirect via state-derived redirect target
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-601.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| workos | authkit-session | before 0.5.1 | 0.5.1 | Patch available | CNA |
| — | @workos/authkit-session (npm) | before 0.5.1 | 0.5.1 | Patch available | GHSA-vvvv-983w-r7pv |
- authkit-session Vendorworkos Affected before 0.5.1 Fixed in 0.5.1 Patch available CNA
- @workos/authkit-session (npm) Vendor— Affected before 0.5.1 Fixed in 0.5.1 Patch available GHSA-vvvv-983w-r7pv
Remediation
- Fix · CNA authkit-session (workos) Fixed in 0.5.1
- Fix · GHSA-vvvv-983w-r7pv @workos/authkit-session (npm) Fixed in 0.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42565
- 2026-10-03 Alias added: GHSA-vvvv-983w-r7pv
References
More workos vulnerabilities
- TI-2025-40100 authkit-nextjs may let session cookies be cached in CDNs CVSS 4.0HIGH 8.0
- TI-2024-19668 @workos-inc/authkit-nextjs session replay vulnerability CVSS 3.1HIGH 8.1
- TI-2025-34712 AuthKit: Sensitive auth data rendered in HTML CVSS 3.1HIGH 7.1
- TI-2025-34711 AuthKit React Router: Sensitive auth data rendered in HTML CVSS 3.1HIGH 7.1
- TI-2025-16829 Authentication bypass in workos Hosted AuthKit CVSS 3.1MEDIUM 6.0
- TI-2024-34658 Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-remix CVSS 4.0LOW 2.1
Sources
- CVE-2026-42565 · CVE Program
- CVE-2026-42565 · NVD
- FIRST EPSS
- GHSA-vvvv-983w-r7pv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences