# CVE-2026-42565: @workos/authkit-session: Open Redirect via state-derived redirect target

> CVE-2026-42565: @workos/authkit-session: Open Redirect via state-derived redirect target. CVSS 4.3 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-42565
Last updated: 2026-06-17T10:48:02Z

- Published: 2026-05-11 19:01 UTC · Updated: 2026-06-17 10:48 UTC · Assigner: GitHub\_M
- CVSS: 4.3 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- EPSS: 0.19%, 9th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-601

## 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.

## Affected vendors and products

- workos: authkit-session

## Tracked companies

- [WorkOS](https://rewindex.com/company/workos.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-42565)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-42565)
- [https://github.com/workos/authkit-session/commit/f56e1d6214a93160759e5677b7a3d772b244db39](https://github.com/workos/authkit-session/commit/f56e1d6214a93160759e5677b7a3d772b244db39)
- [https://github.com/workos/authkit-session/releases/tag/v0.5.1](https://github.com/workos/authkit-session/releases/tag/v0.5.1)
- [https://github.com/workos/authkit-session/security/advisories/GHSA-vvvv-983w-r7pv](https://github.com/workos/authkit-session/security/advisories/GHSA-vvvv-983w-r7pv)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-42565 · Markdown: https://rewindex.com/cve/CVE-2026-42565.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-42565 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:50:54.690Z
