---
cve: "CVE-2022-24858"
severity: "MEDIUM"
cvss: 6.1
epss: "78%"
vendor: "nextauthjs"
kev: false
exploited: false
published: "2022-04-19 23:15:13"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-18T22:35:31+02:00"
---

# CVE-2022-24858

> 6.1 MEDIUM · 🧪 PoC

## Beschreibung

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`.

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Keine | bad |
| UI Interaktion | Erforderlich | good |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Keine | good |
| A Verfügbarkeit | Keine | good |

## Patch verfügbar (OSV)

- 430aa4855779c22c1ae7406a5da2a258274429e3 (Commit)

## Referenzen

- <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw>
- <https://next-auth.js.org/configuration/callbacks#redirect-callback>
- <https://next-auth.js.org/getting-started/upgrade-v4>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-24858) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
