CVE-2026-59351: Predictable Message-ID allows forged responses over the mail transport

Published Dec 2, 2026
·
Updated

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 Software

1 affected component
Spring Spring Web Services

Event History

Dec 2, 2026
CVE Published
via MITRE·07:09 AM
Data Sourced
via MITRE·07:09 AM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Only clients using the optional MailMessageSender transport for request/response calls are affected. The attacker must also be able to deliver email to the mailbox configured as the client's storeUri and predict or observe a request Message-ID from the same client process.

2

What must an attacker do to exploit it?

The attacker must send a message to the configured store mailbox with an In-Reply-To header matching the target request's JavaMail Message-ID. If the client accepts that message as the matching response, the attacker can forge the response content.

3

Is a default configuration necessarily affected?

No. The issue requires use of the optional MailMessageSender transport and a reachable configured store mailbox, along with Message-ID prediction or observation. Deployments not using that request/response mail transport do not meet the stated affected conditions.

4

How can I determine whether a client is at risk?

Check whether the client uses MailMessageSender for request/response operations and identify its configured storeUri mailbox. It is at risk only if an attacker can deliver messages to that mailbox and can predict or observe Message-IDs generated by the same client process.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203