Skip to content

Bump com.sun.mail:jakarta.mail from 1.6.7 to 1.6.8.#395

Merged
garydgregory merged 1 commit intoapache:1.xfrom
henricook:fix/CVE-2025-7962-1.x
Feb 12, 2026
Merged

Bump com.sun.mail:jakarta.mail from 1.6.7 to 1.6.8.#395
garydgregory merged 1 commit intoapache:1.xfrom
henricook:fix/CVE-2025-7962-1.x

Conversation

@henricook
Copy link

@henricook henricook commented Feb 11, 2026

Summary

  • Bump com.sun.mail:jakarta.mail from 1.6.7 to 1.6.8

Version 1.6.7 is vulnerable to CVE-2025-7962, an SMTP injection flaw allowing attackers to inject arbitrary SMTP commands via \r\n characters in UTF-8 encoded input.

Binary compatibility

The fix in 1.6.8 is purely internal - a private validateCommand() method was added to SMTPTransport.sendCommand(). No public API was changed. The only other changes in 1.6.8 are an internal NTLM auth fix and logging improvements.

Diff of the security fix: eclipse-ee4j/mail@cc9b954

Confusing package naming in the CVE

From https://eclipse-ee4j.github.io/angus-mail/

August 18, 2021 - Jakarta Mail moves to Eclipse Angus
To break tight integration between Jakarta Mail Specification API and the implementation, sources of the implementation were moved to this project and further development continues here. Angus Mail is the direct successor of JavaMail/JakartaMail."

It might be wise for a future change to move away from the discontinued com.sun.mail:jakarta.mail namespace altogether.

References

@henricook henricook changed the title [EMAIL] Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail to 1.6.8 [EMAIL] 1.6 Patch: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail to 1.6.8 Feb 11, 2026
@henricook
Copy link
Author

@garydgregory I hope this looks right for the backport, please LMK

@henricook henricook changed the title [EMAIL] 1.6 Patch: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail to 1.6.8 [EMAIL] 1.x backport: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail to 1.6.8 Feb 11, 2026
@garydgregory
Copy link
Member

garydgregory commented Feb 12, 2026

@henricook

I fixed the Jacva 25+ failures the same way I did in master.

Please rebase on git master and I'll kick off another build.

The CVE refers to the Eclipse Angus libraries, not com.sun.mail, so the PR title is inappropriate.

…to 1.6.8

Version 1.6.7 is vulnerable to CVE-2025-7962, an SMTP injection flaw
allowing attackers to inject arbitrary SMTP commands via \r\n
characters in UTF-8 encoded input.

The fix in 1.6.8 adds input validation in SMTPTransport.sendCommand()
via a private validateCommand() method. No public API changes - binary
compatible with 1.6.7.
@henricook henricook force-pushed the fix/CVE-2025-7962-1.x branch from c81e729 to 405f12e Compare February 12, 2026 07:39
@henricook
Copy link
Author

@henricook

I fixed the Jacva 25+ failures the same way I did in master.

Please rebase on git master and I'll kick off another build.

The CVE refers to the Eclipse Angus libraries, not com.sun.mail, so the PR title is inappropriate.

Appreciate your work holding my hand on my first contrib here Gary! I've rebased now

@henricook henricook changed the title [EMAIL] 1.x backport: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail to 1.6.8 [EMAIL] 1.x backport: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail (AKA org.eclipse.angus:jakarta.mail) to 1.6.8 Feb 12, 2026
@henricook
Copy link
Author

The CVE refers to the Eclipse Angus libraries, not com.sun.mail, so the PR title is inappropriate.

I've updated the title and body to reflect what I think I've understood as a confusing situation where jakarta-mail now lives in the eclipse namespace.

@henricook henricook changed the title [EMAIL] 1.x backport: Fix CVE-2025-7962: Bump com.sun.mail:jakarta.mail (AKA org.eclipse.angus:jakarta.mail) to 1.6.8 [EMAIL] 1.x backport: Fix CVE-2025-7962: Fix SMTP injection via Jakarta Mail Feb 12, 2026
@garydgregory garydgregory changed the title [EMAIL] 1.x backport: Fix CVE-2025-7962: Fix SMTP injection via Jakarta Mail Bump com.sun.mail:jakarta.mail from 1.6.7 to 1.6.8. Feb 12, 2026
@garydgregory garydgregory merged commit 24dd401 into apache:1.x Feb 12, 2026
7 checks passed
@garydgregory
Copy link
Member

@henricook

PR merged, thank you! 👍

@henricook henricook deleted the fix/CVE-2025-7962-1.x branch February 12, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants