{"answers":{"affected":"2 open source packages ship an affected version, including @workos/authkit-session.","exploited":"There is no known exploitation of CVE-2026-42565 in the wild and no public exploit code.","fix":"Upgrade @workos/authkit-session to 0.5.1 or later.","what":"CVE-2026-42565 is a medium-severity vulnerability in workos authkit-session, published on 11 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42565 and fix it if it is affected.\n\nWhat it is: CVE-2026-42565 is a medium-severity vulnerability in workos authkit-session, published on 11 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42565 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @workos/authkit-session (npm): affected all versions; fixed in 0.5.1\n- @workos/authkit-session (npm): affected all versions; fixed in 0.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42565/ (Markdown: https://insights.sbomify.com/CVE-2026-42565/index.md)","id":"CVE-2026-42565","markdown":"https://insights.sbomify.com/CVE-2026-42565/index.md","name":"CVE-2026-42565","record":{"aliases":["GHSA-vvvv-983w-r7pv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"WorkOS AuthKit library","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via unvalidated OAuth state parameters in the WorkOS AuthKit session library.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@workos/authkit-session: Open Redirect via state-derived redirect target","id":"CVE-2026-42565","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Meshtastic: Malformed UTF-8 in User.long_name broadcast over LoRa causes mesh-wide client decode failure","id":"CVE-2026-42566"},"packages":[{"ecosystem":"npm","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"@workos/authkit-session","purl":null,"source":"GHSA-vvvv-983w-r7pv"},{"ecosystem":"npm","fixed":["0.5.1"],"introduced":["0"],"last_affected":[],"package":"@workos/authkit-session","purl":"pkg:npm/%40workos/authkit-session","source":"GHSA-vvvv-983w-r7pv"}],"prev":{"headline":"jotty·page: Unauthenticated Path Traversal leads to sensitive file disclosure and session-token reuse impact","id":"CVE-2026-42564"},"products":["authkit-session"],"published":"2026-05-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["workos"]},"summary":"Attackers can redirect users to malicious sites via unvalidated OAuth state parameters in the WorkOS AuthKit session library.","url":"https://insights.sbomify.com/CVE-2026-42565/"}