CVE-2022-24858
published medium CVSS 3.1 · 6.1Default redirect callback vulnerable to open redirects
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextauthjs | — | next-auth< 3.29.2, < 4.3.2 | Affected | Not stated | GitHub_M |
Description
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextauthjs | next-auth | < 3.29.2, < 4.3.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-290 CWE-290: Authentication Bypass by Spoofing
References
3Provider assertions
3GitHub_M · cna
Default redirect callback vulnerable to open redirects
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- db43da5a8ba0acb5380b66e3b48bfb1a55c6ec1c42b786aed6bbe1953a3e232e
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record