PT-2026-37271 · Npm · @Workos/Authkit-Session
Kenkunz
·
Published
2026-05-05
·
Updated
2026-05-11
·
CVE-2026-42565
CVSS v3.1
4.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
@workos/authkit-session versions prior to 0.5.1
Description
An open redirect issue exists in the
handleCallback() function of AuthService 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, allowing attacker-controlled values to be returned to the application. If this value is used directly in a redirect, users may be sent to an external, attacker-controlled site, which can facilitate phishing or social engineering attacks by leveraging the trust of the originating domain.Recommendations
Update to version 0.5.1.
Fix
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
@Workos/Authkit-Session