CVE-2026-116629: Apache Camel: Camel-CometD Cross-Origin Ambient Credential Access via Default JSONP Transport
Origin Validation Error vulnerability in Apache Camel CometD component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
In Apache Camel camel-cometd, CometD's BayeuxServer was instantiated without restricting the allowed transports. Consequently, CometD's legacy JSONP transport (callback-polling) was enabled by default and could not be disabled via endpoint or component configuration. A cross-origin web page could issue GET requests via script tags with ambient browser credentials (such as cookies or TLS client certificates) and read the callback response. Users are advised to upgrade to 4.24.0, 4.22.3, or 4.18.6, where allowedTransports defaults to "websocket,long-polling", or configure allowedTransports explicitly.
Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.
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 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.22.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.18.6 - Configuration
Configure allowedTransports explicitly as "websocket,long-polling" to restrict allowed transports.
Apache Camel CometD allowedTransports = websocket,long-polling
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using the Apache Camel camel-cometd component in versions 4.0.0 through before 4.18.6, 4.19.0 through before 4.22.3, or 4.23.0 through before 4.24.0 are affected. The vulnerable behavior is enabled by default because the BayeuxServer permits the legacy callback-polling JSONP transport.
What does an attacker need to exploit it?
An attacker needs to entice a user to load a cross-origin web page. That page can use script-tag GET requests to the CometD endpoint and, where the browser sends ambient credentials such as cookies or TLS client certificates, read the JSONP callback response.
What can be done before upgrading?
Explicitly configure allowedTransports to exclude callback-polling/JSONP and allow only the transports required by the deployment. The fixed default is "websocket,long-polling".
Which upgrade versions contain the fix?
Upgrade to Apache Camel 4.24.0, 4.22.3 for the 4.22.x LTS stream, or 4.18.6 for the 4.18.x LTS stream. These versions default allowedTransports to "websocket,long-polling".