Vulnerabilities in pkg:npm/@workos/authkit-session
PACKAGECVE-2026-42565 is a MODERATE (CVSS 4.3) @workos/authkit-session has an open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting @workos/authkit session libraries in the npm ecosystem. The issue involves @workos/authkit-session has an open redirect via state-derived redirect target. Remediation is available by upgrading affected packages to version 0.5.1.
pkg:npm/@workos/authkit-session
Vulnerability advisories affecting package pkg:npm/@workos/authkit-session. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vvvv-983w-r7pv | CVE-2026-42565 | MODERATE | @workos/authkit-session has an Open Redirect via state-derived redirect target |
CVE-2026-42565 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-42565
To remediate this vulnerability, upgrade all affected @workos/authkit session dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @workos/authkit-session@0.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @workos/authkit-session
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-42565, inspect your project dependencies using npm:
npm ls @workos/authkit-session
Analyze the terminal output to locate any version of @workos/authkit session in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.1), your application is affected.
Note: The npm ls @workos/authkit-session command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In @workos/authkit session, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42565 Affected @workos/authkit session Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@workos/authkit-session
|
npm |
< 0.5.1
|
0.5.1
|
References
Frequently Asked Questions
What is CVE-2026-42565?
Which @workos/authkit session versions are affected?
What version fixes CVE-2026-42565?
Is @workos/authkit-session affected?
What is the CVSS score of CVE-2026-42565?
What CWE is associated with CVE-2026-42565?
How can I check npm dependencies for CVE-2026-42565?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vvvv-983w-r7pv",
"modified" : "2026-05-13T14:19:01Z",
"published" : "2026-05-05T18:42:26Z",
"aliases" : [ "CVE-2026-42565" ],
"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.\n\nThe `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.\n\nIf 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.\n\n**Security Impact**\nThis 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.\n\nThe severity depends on how `returnPathname` is used by the application. Exploitation requires:\n\n* The application to use `returnPathname` as a redirect target, and\n* The absence of downstream validation or allowlisting\n\nThis 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.\n\n**Vulnerability Type**\nCWE-601: URL Redirection to Untrusted Site (Open Redirect)\n\n**Patches**\nPatched in https://github.com/workos/authkit-session/releases/tag/v0.5.1",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@workos/authkit-session"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-session/security/advisories/GHSA-vvvv-983w-r7pv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42565"
}, {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-session/commit/f56e1d6214a93160759e5677b7a3d772b244db39"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/workos/authkit-session"
}, {
"type" : "WEB",
"url" : "https://github.com/workos/authkit-session/releases/tag/v0.5.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T18:42:26Z",
"nvd_published_at" : "2026-05-11T20:25:42Z"
}
}