CVE-2022-24858Nextauth.js Next-auth
Medium 6.1 No auth needed
Follow: this CVE · Nextauth.js · Nextauth.js Next-auth We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 54
- Auth required
- No
- Published
- Apr 19, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also impacted. Upgrading to 3.29.2 or 4.3.2 will patch this vulnerability. If you are not able to upgrade for any reason, you can add a configuration to your callbacks option. If you already have a `redirect` callback, make sure that you match the incoming `url` origin against the `baseUrl`.
What to do
- Apply the vendor's security update for Next-auth.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | next-auth |
< 3.29.2 |
3.29.2 |
npm install next-auth@3.29.2 |
| npm | next-auth |
≥ 4.0.0 < 4.3.2 |
4.3.2 |
npm install next-auth@4.3.2 |
Per OSV / GitHub Advisories (GHSA-f9wg-5f46-cjmw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nextauth.js | next-auth | ≥ 3.0.0 < 3.29.2 |
| nextauth.js | next-auth | ≥ 4.0.0 < 4.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Third Party Advisory
- next-auth.js.org Vendor Advisory
- next-auth.js.org Vendor Advisory