{"answers":{"affected":"2 open source packages ship an affected version, including @workos-inc/authkit-nextjs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-29901 in the wild and no public exploit code.","fix":"Upgrade @workos-inc/authkit-nextjs to 0.4.2 or later.","what":"CVE-2024-29901 is a medium-severity authentication bypass vulnerability in workos authkit-nextjs, published on 29 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29901 and fix it if it is affected.\n\nWhat it is: CVE-2024-29901 is a medium-severity authentication bypass vulnerability in workos authkit-nextjs, published on 29 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-29901 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @workos-inc/authkit-nextjs (npm): affected all versions; fixed in 0.4.2\n- @workos-inc/authkit-nextjs (npm): affected all versions; fixed in 0.4.2\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-2024-29901/ (Markdown: https://insights.sbomify.com/CVE-2024-29901/index.md)","id":"CVE-2024-29901","markdown":"https://insights.sbomify.com/CVE-2024-29901/index.md","name":"CVE-2024-29901","record":{"aliases":["GHSA-35w3-6qhc-474v"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Next.js AuthKit library","requires_auth":"none","summary":"Attackers can reuse expired sessions by manipulating headers, allowing unauthorized access to user accounts in Next.js applications using AuthKit.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"authkit-nextjs","vendor":"workos"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay"}],"description":"The AuthKit library for Next.js provides helpers for authentication and session management using WorkOS \u0026 AuthKit with Next.js.\nA user can reuse an expired session by controlling the `x-workos-session` header. The vulnerability is patched in v0.4.2.","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-inc/authkit-nextjs session replay vulnerability","id":"CVE-2024-29901","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Cosign vulnerable to system-wide denial of service via malicious attachments","id":"CVE-2024-29902"},"packages":[{"ecosystem":"npm","fixed":["0.4.2"],"introduced":["0"],"last_affected":[],"package":"@workos-inc/authkit-nextjs","purl":null,"source":"GHSA-35w3-6qhc-474v"},{"ecosystem":"npm","fixed":["0.4.2"],"introduced":["0"],"last_affected":[],"package":"@workos-inc/authkit-nextjs","purl":"pkg:npm/%40workos-inc/authkit-nextjs","source":"GHSA-35w3-6qhc-474v"}],"prev":{"headline":"@electron/packager's build process memory potentially leaked into final executable","id":"CVE-2024-29900"},"products":["authkit-nextjs"],"published":"2024-03-29","related":[{"cvss_score":8,"headline":"authkit-nextjs may let session cookies be cached in CDNs","id":"CVE-2025-64762","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":2.1,"headline":"Refresh tokens are logged when the debug flag is enabled in @workos-inc/authkit-nextjs","id":"CVE-2024-51752","kev_date_added":null,"published":"2024-11-05"}],"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":"US public information, NVD API terms","name":"NVD"},{"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":"2024-08-02","vendors":["workos"]},"summary":"Attackers can reuse expired sessions by manipulating headers, allowing unauthorized access to user accounts in Next.js applications using AuthKit.","url":"https://insights.sbomify.com/CVE-2024-29901/"}