CVE-2026-135915: Apache Camel: Camel-Undertow WebSocket OAuth token validation is shared across endpoints, allowing authentication bypass
Improper Authentication vulnerability in Apache Camel Undertow component.
This issue affects Apache Camel: from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
In affected versions of the camel-undertow component, the WebSocket handler scoped OAuth (oauthProfile) token-validation state to the connection rather than to the individual endpoint, while its other WebSocket security checks (security provider, allowed roles and custom handlers) were scoped per endpoint. When a single WebSocket path is served over time by endpoints configured with different OAuth profiles, a connection validated under one endpoint's profile could be treated as OAuth-validated for another endpoint whose profile never validated it, which is an authentication/authorization bypass by an untrusted WebSocket peer. The fix scopes OAuth validation per endpoint URI so a connection is only treated as valid for the specific endpoint whose profile validated it.
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.
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
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Affected deployments use the camel-undertow component for WebSockets and have a single WebSocket path served over time by endpoints configured with different OAuth profiles. The affected Apache Camel versions are 4.19.0 through before 4.22.3, and 4.23.0 through before 4.24.0.
What does an attacker need to exploit the bypass?
An untrusted WebSocket peer needs a connection that was validated under one endpoint's OAuth profile and then reaches another endpoint using the same path but a different OAuth profile. The vulnerable implementation treats the connection as OAuth-validated even when the second endpoint's profile did not validate it.
How can I determine whether my configuration is at risk?
Check whether camel-undertow WebSocket endpoints reuse the same WebSocket path while specifying different oauthProfile configurations. Also verify the Camel version, as 4.22.3 and 4.24.0 contain the fix.