Jakarta Mail vulnerable to SMTP Injection
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | com.sun.mail:jakarta.mail | < 1.6.8, >= 2.0.0, < 2.0.2 | 1.6.8, 2.0.2 |
| Java / Kotlin (Maven) | org.eclipse.angus:smtp | < 2.0.4 | 2.0.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-7962
- https://github.com/jakartaee/mail-api/issues/765
- https://github.com/jakartaee/mail-api/pull/760
- https://github.com/eclipse-ee4j/angus-mail/commit/269099b652a0a5c2fa140f1296a18f0fbbea0d44
- https://github.com/eclipse-ee4j/angus-mail
- https://gitlab.eclipse.org/security/cve-assignement/-/issues/67
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290#note_5320539
- http://www.openwall.com/lists/oss-security/2025/09/03/4
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-147- Platform
- Java / Kotlin (Maven)
- Package
com.sun.mail:jakarta.mail, org.eclipse.angus:smtp- Disclosed
- 21.07.2025
- Updated
- 11.10.2026 13:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-9342-92gg-6v29 - CC BY 4.0
Vulnerability history: org.eclipse.angus:smtp
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.