← Security advisories
Apache Camel security advisory

CVE-2026-116629

Camel-CometD Cross-Origin Ambient Credential Access via Default JSONP Transport

Description

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.

Mitigation

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.

Credit

This issue was discovered by Federico Mariani from Apache Software Foundation

Notes

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

References