
Runnable Camel Spring Boot proof-of-concept reproducing CVE-2026-105966, where camel-undertow skipped securityProvider and allowedRoles checks on WebSocket endpoints.
Runnable proof-of-concept reproducer for the Apache Camel vulnerability where the configured
securityProvider and allowedRoles were not enforced on WebSocket endpoints, so a client could open a
WebSocket consumer without passing the authentication and role checks that apply to the HTTP endpoints.
| Runtime | Directory | Stack |
|---|---|---|
| Camel Spring Boot | camel-spring-boot/ | Spring Boot 3.5.13 + camel-undertow 4.22.1 |
Camel Spring Boot only. There is no
camel-quarkus-undertowextension (Quarkus has its own Vert.x HTTP stack), verified against the Camel Quarkus 3.39.0 source tree and its BOM, so this component cannot be run on Camel Quarkus.
Two consumers sit on the same undertow server with the same security configuration - the same
securityProvider, the same allowedRoles. One speaks HTTP, the other WebSocket:
from("undertow:http://0.0.0.0:8081/api?securityProvider=#demoSecurityProvider&allowedRoles=admin")
from("undertow:ws://0.0.0.0:8081/feed?securityProvider=#demoSecurityProvider&allowedRoles=admin")
cd camel-spring-boot
mvn clean package
docker compose up -d --build
until [ "$(curl -s http://localhost:8080/exploit/ready)" = "Started" ]; do sleep 1; done
curl -s http://localhost:8080/exploit/attack
docker compose down
Output on an affected build:
1) HTTP endpoint, no token
HTTP 403 refused
2) HTTP endpoint, with the token
HTTP 200 ADMITTED
3) WebSocket endpoint, NO token - the same security configuration
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
4) WebSocket endpoint, with the token
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
Every question the security provider was actually asked:
- /api -> FORBIDDEN
- /api -> OK
>>> PROVEN: ...
The provider's call list is the evidence. It contains only /api: the provider was never asked about
/feed at all. UndertowConsumer ran the securityProvider / allowedRoles check in the HTTP handler it
built, while a WebSocket endpoint was registered through CamelWebSocketHandler, which at this release
performs no authentication whatsoever - so the upgrade skipped the check entirely rather than failing it.
The HTTP consumer is the control: the identical caller is refused 403 without the token and admitted with
it, so the configuration itself is sound and it is the WebSocket path alone that is unprotected.
No identity provider and no network. A small UndertowSecurityProvider stands in for the deployment's
authorization: a caller is authorized only when it presents a shared bearer token and the endpoint's
allowed roles include admin. Every call into it is recorded, which is what makes "never asked" visible.
The driver approaches each consumer the way an outside client would: an ordinary HTTP GET for the HTTP one,
and a real WebSocket handshake (java.net.http.WebSocket) for the WebSocket one.
| Property | Value |
|---|---|
| Component | camel-undertow (UndertowConsumer, CamelWebSocketHandler) |
| CWE | Missing authorization on an endpoint the deployment configured as protected |
| Severity | High |
| Attack vector | Opening a WebSocket connection to an undertow consumer configured with securityProvider / allowedRoles |
| Impact | Reaching a route the application intended to protect, without the required authentication or role |
| Affected Versions | 4.0.0 before 4.18.6; 4.19.0 before 4.22.2 |
| Fixed Versions | 4.18.6, 4.22.2, 4.23.0 |
| JIRA | CAMEL-25375 |
| Credit | Andrea Cosentino from Apache Software Foundation |
Advisory: https://camel.apache.org/security/CVE-2026-105966.html
The security-constraint checks now run for WebSocket consumers as well, so the same authentication and
allowed roles are enforced: CamelWebSocketHandler authenticates the exchange before the upgrade and sets
the status code when the provider refuses.
Set camel.version to 4.22.2 and run it again. Verified against 4.22.1 -> 4.22.2:
3) WebSocket endpoint, NO token
handshake: refused - WebSocketHandshakeException: null
4) WebSocket endpoint, with the token
handshake: CONNECTED - the upgrade succeeded and the client can send on the protected feed
Every question the security provider was actually asked:
- /api -> FORBIDDEN
- /api -> OK
- /feed -> FORBIDDEN
- /feed -> OK
>>> NOT reproduced: the WebSocket upgrade was refused without a token.
Note the two new /feed entries: the provider is now consulted for the WebSocket path, it refuses the
caller without a token, and the authorized caller still connects.
This repository is published for educational and defensive purposes: to help Apache Camel users understand the vulnerability, verify whether they are affected, and confirm that upgrading resolves it. Do not use this material against systems you do not own or operate.