CVE-2026-59363: Spring Integration MQTT v5 Header Mapper Maps All User Properties Including Framework-Significant Headers
MQTT v5 PUBLISH packets carry arbitrary user properties supplied by the publisher. With its default inboundHeaderNames of , MqttHeaderMapper maps every user property into the message headers without excluding framework-significant names such as replyChannel and errorChannel , and Mqttv5PahoMessageDrivenChannelAdapter builds the message directly from those headers.
An attacker able to publish to a topic subscribed by an affected application can therefore set these headers. A replyChannel or errorChannel header is later resolved as a MessageChannel bean name, which allows the attacker to redirect the output of reply-producing handlers without an explicit output channel, or error messages (embedding the attacker payload), to another channel in the application, for example one that forwards to an external system. Applications using Mqttv5PahoMessageDrivenChannelAdapter with the default header mapping are affected.
Affected Software
Event History
Frequently Asked Questions
Which applications are affected by this issue?
Applications using Mqttv5PahoMessageDrivenChannelAdapter with the default inbound header mapping are affected. The default inboundHeaderNames value of * causes all MQTT v5 user properties to be mapped into message headers.
What access does an attacker need to exploit this?
An attacker needs the ability to publish MQTT v5 messages to a topic that the affected application subscribes to. They can then supply user properties named replyChannel or errorChannel.
What impact can the injected headers have?
A replyChannel value can redirect output from reply-producing handlers that have no explicit output channel. An errorChannel value can route error messages, including the attacker payload, to another application channel, potentially one that forwards data externally.
What configuration change can reduce exposure if patching is not immediately possible?
Avoid the default wildcard inbound header mapping and configure inboundHeaderNames so that framework-significant headers such as replyChannel and errorChannel are not mapped from MQTT user properties.