CVE-2026-135919: Apache Camel: Camel-XMPP endpoint cache can deliver messages to the wrong participant or send them from the wrong account
Exposure of Data Element to Wrong Session vulnerability in Apache Camel XMPP component.
This issue affects Apache Camel: from 4.0.0 before 4.24.0.
Apache Camel's camel-xmpp component kept its own endpoint cache keyed only by the XMPP scheme, host, port and query string, omitting the user and the chat participant that carry identity in an XMPP endpoint URI. Because of that, two routes configured for different participants or different users on the same server could be collapsed onto a single cached endpoint, so a message could be delivered to the wrong participant and messages could be sent through the wrong account's credentials. The fix removes the component-level endpoint cache so that each distinct endpoint URI yields its own endpoint (connections are still shared per account), and ships in Apache Camel 4.24.0, 4.22.3 and 4.18.6.
Upgrade to Apache Camel 4.24.0, which fixes the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.24.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using the Apache Camel camel-xmpp component from 4.0.0 before 4.24.0 are affected when routes use different XMPP users or chat participants on the same server and otherwise share the cache key attributes.
What conditions are required for messages to be misrouted or sent under the wrong credentials?
At least two XMPP endpoint configurations must differ by user identity or chat participant while using the same XMPP scheme, host, port, and query string. Under those conditions, the component-level cache can collapse the endpoints into one cached endpoint.
How can the issue be remediated?
Upgrade Apache Camel to 4.24.0. The fix is also shipped in 4.22.3 and 4.18.6; it removes the component-level endpoint cache while retaining connection sharing per account.