CVE-2022-35924CWE-20

Verification requests (magic link) sent to unwanted emails

Critical · published August 2, 2022

CVSS v3.1
9.1
EPSS
1%
Percentile
73.6
In the wild
Unconfirmed
What it is

🚨 A single forged request could let an attacker sign in as anyone! NextAuth.js versions before 4.10.3 and 3.29.10 have a sneaky flaw that could expose your users' accounts. 🔥 Think of it like a restaurant that accepts reservations based on a single name—if someone yells in the name of a guest and another hidden name, both get seated! This vulnerability allows attackers to forge email requests, letting them slip right past your defenses like a clever con artist. 🤯 An attacker can manipulate the sign-in process by sending a comma-separated list of emails, allowing them to log in as any user specified. This could lead to unauthorized access, where the attacker can view or change user data, potentially causing chaos and confusion for your organization. Yikes!

Put simply

Think of it like a restaurant that accepts reservations based on a single name—if someone yells in the name of a guest and another hidden name, both get seated! This vulnerability allows attackers to forge email requests, letting them slip right past your defenses like a clever con artist. 🤯 This vulnerability arises because NextAuth.js fails to properly validate email addresses when signing in with the EmailProvider. The attacker can craft a malicious request that bypasses basic authorization checks due to improper email normalization.

What to do

An attacker can manipulate the sign-in process by sending a comma-separated list of emails, allowing them to log in as any user specified. This could lead to unauthorized access, where the attacker can view or change user data, potentially causing chaos and confusion for your organization. Yikes! Upgrade to NextAuth.js version 4.10.3 or 3.29.10 immediately. If upgrading isn't feasible, consider normalizing incoming requests manually using Advanced Initialization to sanitize the email input. Don't put this off—act now! 🛡️ You've got this! By following these steps, you can protect your application and keep your users safe. Let’s secure those accounts! 💪✨

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01471 · 73.6th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2022-08-02T17:55Z
EPSS history
Timeline
  • 02 AUG 17:55Z
    Verification requests (magic link) sent to unwanted emails
    cvelistv5