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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-05-05T18:42:26.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-vvvv-983w-r7pv
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- workos authkit-session: < 0.5.1
- @workos/authkit-session (npm): before 0.5.1

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/workos/authkit-session/security/advisories/GHSA-vvvv-983w-r7pv> (web)
- <https://github.com/workos/authkit-session/commit/f56e1d6214a93160759e5677b7a3d772b244db39> (web)
- <https://github.com/workos/authkit-session/releases/tag/v0.5.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42565> (advisory)
- <https://github.com/workos/authkit-session> (package)

## Sources

- CVE List: [CVE-2026-42565](https://www.cve.org/CVERecord?id=CVE-2026-42565), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-vvvv-983w-r7pv](https://github.com/advisories/GHSA-vvvv-983w-r7pv), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-42565](https://nvd.nist.gov/vuln/detail/CVE-2026-42565), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42565 · Whole record: https://cve.day/CVE-2026-42565.json · Rebuilt by cve.day 2026-11-25T22:59:21.250Z
