NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-7962: Jakarta Mail vulnerable to SMTP Injection

mediumCVSS 4.0 6.0 · 3.1 7.5GHSA-9342-92gg-6v29

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

Published Jul 21, 2025 · Updated Apr 16, 2026

Affected packages

org.eclipse.angus:smtp

Ecosystem
Maven
Affected
< 2.0.4
Fixed in
2.0.4
Check
mvn dependency:tree -Dincludes=org.eclipse.angus:smtp

com.sun.mail:jakarta.mail

Ecosystem
Maven
Affected
< 1.6.8
Fixed in
1.6.8
Check
mvn dependency:tree -Dincludes=com.sun.mail:jakarta.mail

com.sun.mail:jakarta.mail

Ecosystem
Maven
Affected
>= 2.0.0, < 2.0.2
Fixed in
2.0.2
Check
mvn dependency:tree -Dincludes=com.sun.mail:jakarta.mail

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to kmoens.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology