← Security advisories
Apache Camel security advisory

CVE-2026-103873

Camel-Spring-WS: the HeaderFilterStrategy is not applied to outbound SOAP responses, disclosing Camel-internal headers to the remote client

Description

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.

Mitigation

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.

Credit

This issue was discovered by Andrea Cosentino from Apache Software Foundation

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25340 refers to the various commits that resolved the issue, and have more details.

References