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
- https://nvd.nist.gov/vuln/detail/CVE-2025-7962
- https://gitlab.eclipse.org/security/cve-assignement/-/issues/67
- https://github.com/eclipse-ee4j/angus-mail/commit/269099b652a0a5c2fa140f1296a18f0fbbea0d44
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290
- https://github.com/jakartaee/mail-api/issues/765
- https://github.com/jakartaee/mail-api/pull/760
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290#note_5320539
- https://github.com/advisories/GHSA-9342-92gg-6v29
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
