Red Hat Lightwell has released com.sun.mail:android-mail 1.6.7.rhlw-00001 with a backported security fix.
CVE-2025-7962: In Jakarta Mail versions prior to 2.0.2 it is possible to perform an SMTP Injection by utilizing theĀ \r and \n UTF-8 characters to separate different messages.
This patched artifact is a drop-in replacement for com.sun.mail:android-mail 1.6.7 from Maven Central.