Vulnerability DatabaseGHSA-5jpx-9hw9-2fx4

GHSA-5jpx-9hw9-2fx4
JavaScript vulnerability analysis and mitigation

Overview

NextAuth.js's email sign-in functionality contains a vulnerability (GHSA-5jpx-9hw9-2fx4) that affects versions <4.24.12 and <5.0.0-beta.30. The vulnerability was discovered and disclosed in October 2025, impacting the npm package next-auth. This security issue stems from a bug in nodemailer's address parser that allows authentication emails to be misdirected to attacker-controlled mailboxes (GitHub Advisory).

Technical details

The vulnerability exploits a parsing flaw in nodemailer where specially crafted email addresses like '"e@attacker.com"@victim.com' are incorrectly processed. Instead of delivering to the intended recipient at victim.com, the system sends the email to e@attacker.com. This behavior violates RFC 5321/5322 semantics. The vulnerability has been assigned a CVSS v4 score of 6.9 (Moderate severity), with metrics indicating Network attack vector, Low attack complexity, and High confidentiality impact (GitHub Advisory).

Impact

When exploited, this vulnerability allows attackers to intercept sensitive emails intended for legitimate users, including login and verification links. This represents a significant security risk as it could lead to unauthorized access to user accounts and exposure of sensitive information. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to update to the patched versions: 4.24.12 or 5.0.0-beta.30, which incorporate nodemailer version 7.0.7 that fixes the address parsing vulnerability. These updates have been released to address the security issue directly (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59837HIGH7.2
  • JavaScriptJavaScript
  • astro
NoYesOct 28, 2025
CVE-2025-62713HIGH7.2
  • JavaScriptJavaScript
  • @kottster/server
NoYesOct 23, 2025
GHSA-5jpx-9hw9-2fx4MEDIUM6.9
  • JavaScriptJavaScript
  • next-auth
NoYesOct 29, 2025
GHSA-q7jf-gf43-6x6pMEDIUM6.5
  • JavaScriptJavaScript
  • hono
NoYesOct 24, 2025
CVE-2025-62517MEDIUM5.9
  • JavaScriptJavaScript
  • rollbar
NoYesOct 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management