CVE-2026-103873: Apache Camel: camel-spring-ws does not apply the HeaderFilterStrategy to outbound SOAP responses, disclosing Camel-internal headers to clients
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Spring-Ws component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2.
In camel-spring-ws, the configured HeaderFilterStrategy was not applied to outbound SOAP responses, so Camel-internal headers (names beginning with Camel, camel or org.apache.camel.) that were set on the exchange during routing were copied into the SOAP response returned to the remote client. A remote client could therefore observe internal routing state that should not leave the application. The fixed releases apply the outbound header filter to SOAP responses so that Camel-internal headers are not disclosed.
Users are recommended to upgrade to 4.18.6 for the 4.18.x LTS releases stream, to 4.22.2 for the 4.22.x LTS releases stream, or to 4.23.0. As a workaround, a removeHeaders EIP can be used before the response is produced to strip the Camel-internal headers.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Camel camel-spring-wsto a version that resolves this vulnerability.Fixed in 4.23.0 - Compensating control
Use a removeHeaders EIP before producing the SOAP response to strip Camel-internal headers.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using the camel-spring-ws component in affected Apache Camel versions are exposed when their routes place Camel-internal headers on an exchange and return a SOAP response to a remote client. Those clients may receive headers beginning with Camel, camel, or org.apache.camel.
Does exploitation require authentication or user interaction?
No. The supplied vector indicates network access, low attack complexity, no privileges required, and no user interaction; a remote client able to invoke the affected SOAP endpoint can observe disclosed headers.
Which versions should be upgraded?
Upgrade to 4.18.6 in the 4.18.x LTS stream, 4.22.2 in the 4.22.x stream, or 4.23.0. Affected versions are 4.0.0 before 4.18.6 and 4.19.0 before 4.22.2.
What can be done if an upgrade cannot be applied immediately?
Use a removeHeaders EIP before producing the SOAP response to strip Camel-internal headers. Remove headers with names beginning with Camel, camel, or org.apache.camel.