DEV Community

Ioneyrezende
Ioneyrezende

Posted on

Camel Spring-WS Leaked Internal Headers Into SOAP Responses

Camel Spring-WS Leaked Internal Headers Into SOAP Responses

Apache Camel's camel-spring-ws component failed to apply the configured HeaderFilterStrategy to outbound SOAP responses. CVE-2026-103873 affects Camel from 4.0.0 before 4.18.6 and from 4.19.0 before 4.22.2. As a result, Camel-internal exchange headers whose names begin with Camel, camel, or org.apache.camel. could be copied into the SOAP response returned to a remote client.

The exposure is specific to SOAP response serialization. SOAP responses are not just the application payload. They also carry headers that frameworks use for routing, correlation, tracing, and error handling. A client that receives internal routing metadata can learn service names, endpoint identifiers, message history, or implementation details. The exact impact depends on what the application stored in those headers and whether authentication, logging, or downstream trust decisions treated that metadata as private.

The vendor fix is available in the fixed Camel release lines. Upgrade to 4.18.6, 4.22.2, or a later fixed release. Restart the route context and verify which HeaderFilterStrategy is attached to the Spring-WS endpoint. The filter must run on both request and response paths; a unit test that checks only the incoming message will miss this defect.

Use a controlled SOAP client to inspect an actual response. Send a request through a test route that sets a harmless internal header, then confirm that the response contains only the intended SOAP headers. Repeat the test for the error path, because exception handling often takes a different marshaling route. Do not place credentials in test headers. The marker should be a random, non-sensitive string.

Search historical responses and gateway logs for Camel headers if the application retained message captures. If internal metadata was exposed to an untrusted client, rotate any secrets that could have appeared in routing configuration and review whether the response leaked service topology. A header leak may not alter data, but it can support reconnaissance and confused-deputy attempts.

The longer-term control is to define an explicit SOAP header allowlist. Treat framework headers as internal by default, strip them at the boundary, and add only the headers required by the service contract. That design is easier to test than a denylist of known internal prefixes.

References

Top comments (0)