GitHub Advisory Database
GHSA-9342-92gg-6v29
Jakarta Mail vulnerable to SMTP Injection
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.eclipse.angus:smtp | All versions before 2.0.4 (fixed in 2.0.4) |
| Maven | com.sun.mail:jakarta.mail | All versions before 1.6.8 (fixed in 1.6.8) |
| Maven | com.sun.mail:jakarta.mail | From 2.0.0 before 2.0.2 (fixed in 2.0.2) |
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