Improper Neutralization Affecting com.sun.mail:jakarta.mail package, versions [,1.6.8)[2.0.0-RC1,2.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMSUNMAIL-12028709
  • published20 Aug 2025
  • disclosed21 Jul 2025
  • credit1ue, blu3r

Introduced: 21 Jul 2025

CVE-2025-7962  (opens in a new tab)
CWE-147  (opens in a new tab)

How to fix?

Upgrade com.sun.mail:jakarta.mail to version 1.6.8, 2.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization via the handling of SMTP message input. An attacker can inject arbitrary SMTP commands by supplying specially crafted input containing carriage return and line feed characters.

CVSS Base Scores

version 4.0
version 3.1