The default Message-ID generated by JavaMail is predictable, so an attacker who can deliver mail to the client's configured store mailbox and predict or observe that value can inject a forged respons…
- CVSS
- 5.9Medium
- Chance of exploitation (EPSS)
- 0.44%
- Published
- Dec 2, 2026
- In the news
- Not yet
What to do
A moderate security flaw in Spring Web Services that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 3.1.10, 4.0.20, 4.1.5, 5.0.3.1, 5.0.4
Affected versions
- Spring Web Services
- Before 3.1.10; 4.0.0 to before 4.0.20; 4.1.0 to before 4.1.5; 5.0.0 to before 5.0.3.1; 5.0.0 to before 5.0.4
Description
MailSenderConnection correlates a SOAP response to its request solely by matching the request's JavaMail Message-ID against the In-Reply-To header of messages in the store mailbox.
The default Message-ID generated by JavaMail is predictable, so an attacker who can deliver mail to the client's configured store mailbox and predict or observe that value can inject a forged response that the client accepts as the legitimate reply.
This issue only affects deployments where all the following are true:
The client uses the optional MailMessageSender transport for request/response calls.
An attacker can deliver a message to the mailbox configured as the client's storeUri .
That attacker can predict or observe the Message-ID of a request sent from the same client process.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-59351 published (CVSS 5.9) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Dec 2, 2026
- CVECVE-2026-59351 published (CVSS 5.9)CVE Program · 07:09 UTC
References 2
- spring.io /security/cve-2026-59351
- nvd.nist.gov /vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N&version=3.1