Improper Neutralization Affecting jakarta-mail package, versions <0:1.6.5-8.amzn2023.0.2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.89% (60th 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-AMZN2023-JAKARTAMAIL-11482924
  • published6 Aug 2025
  • disclosed21 Jul 2025

Introduced: 21 Jul 2025

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

How to fix?

Upgrade Amazon-Linux:2023 jakarta-mail to version 0:1.6.5-8.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2025-1117.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jakarta-mail package and not the jakarta-mail package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

In Jakarta Mail 2.0.2 it is possible to preform a SMTP Injection by utilizing the \r and \n UTF-8 characters to separate different messages.

CVSS Base Scores

version 3.1