CVE-2026-135915
Camel-Undertow WebSocket OAuth token validation is shared across endpoints, allowing authentication bypass
Description
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.
Mitigation
Credit
This issue was discovered by Andrea Cosentino from Apache Software Foundation
Notes
The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25994 refers to the various commits that resolved the issue, and have more details.