GHSA-vvvv-983w-r7pv

Suggest an improvement
Source
https://github.com/advisories/GHSA-vvvv-983w-r7pv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vvvv-983w-r7pv/GHSA-vvvv-983w-r7pv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vvvv-983w-r7pv
Aliases
  • CVE-2026-42565
Published
2026-05-05T18:42:26Z
Modified
2026-05-13T14:33:35.804976Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
@workos/authkit-session has an Open Redirect via state-derived redirect target
Details

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 (e.g., https://evil.com/, //evil.com, or similar variants) may be returned to the application.

If this value is used directly in a redirect (e.g., via an HTTP Location header, framework redirect helpers, or client-side navigation), it may cause the user to be redirected to an external, attacker-controlled site.

Security Impact This issue may be used to facilitate phishing or user redirection attacks by leveraging the trust of the originating domain. For example, an attacker could craft a link that directs a user through a legitimate authentication flow and then redirects them to an external site.

The severity depends on how returnPathname is used by the application. Exploitation requires:

  • The application to use returnPathname as a redirect target, and
  • The absence of downstream validation or allowlisting

This vulnerability does not enable authentication bypass, token disclosure, or direct account compromise on its own, but may increase the effectiveness of social engineering attacks when combined with user interaction.

Vulnerability Type CWE-601: URL Redirection to Untrusted Site (Open Redirect)

Patches Patched in https://github.com/workos/authkit-session/releases/tag/v0.5.1

Database specific
{
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-601"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-05T18:42:26Z",
    "nvd_published_at": "2026-05-11T20:25:42Z"
}
References

Affected packages

npm / @workos/authkit-session

Package

Name
@workos/authkit-session
View open source insights on deps.dev
Purl
pkg:npm/%40workos/authkit-session

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.5.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vvvv-983w-r7pv/GHSA-vvvv-983w-r7pv.json"