CVE-2026-82115
Apache Wicket: The configured authorization strategy is not applied to a shared WebSocketResource
Description
Missing authorization in Apache Wicket.
org.apache.wicket.protocol.ws.api.WebSocketMessageBroadcastHandler, the request handler Wicket's native WebSocket support uses to deliver an incoming frame, resolves the shared resource named by the client's handshake parameter and calls WebSocketResource#onPayload() on it directly, without consulting IAuthorizationStrategy#isResourceAuthorized(). That method has a single enforcement point in the framework, org.apache.wicket.request.handler.resource.ResourceRequestHandler, which the WebSocket transport does not pass through, and WebSocketResource#respond() is final and empty. No route to a WebSocketResource therefore asks the configured authorization strategy whether the caller may use it, and an @AuthorizeResource annotation on such a class has no effect.
A caller needs a bound Wicket session and the name of the resource. The name is not a secret: Wicket writes it into the page that opens the connection. No page of the application is otherwise involved, because a request naming a resource is served with a throwaway page. All of the resource's callbacks are reached this way, including onConnect() and both onMessage() overloads, and what a callback pushes back through WebSocketRequestHandler goes to the caller's own connection.
An application is affected where it registers a WebSocketResource as a shared resource and relies on the authorization strategy to restrict it. What the caller gains is whatever that resource's callbacks do with a text or binary message of the caller's choosing. The connection is registered under the caller's own session, so it gives no access to another user's connection.
As a workaround, reject unauthorized connections with an IWebSocketConnectionFilter registered through WebSocketSettings#setConnectionFilter(), or repeat the authorization check at the start of each callback.
This issue affects Apache Wicket: from 8.0.0 through 8.19.0, from 9.0.0 through 9.24.0, from 10.0.0 through 10.11.0. Older, unsupported releases from 7.0.0 onwards are also affected. Users are recommended to upgrade to version 8.20.0, 9.25.0 or 10.12.0, which fix the issue.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.wicket » wicket-native-websocket-corepreliminary | >= 8.0.0, <= 8.19.0>= 9.0.0, <= 9.24.0>= 10.0.0, <= 10.11.0 | - |
Blast radius
51% of the dependent artifacts (36) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 110 |
| 2 hops | 427 |
| 3 hops | 234 |
| 4 hops | 200 |
| 5 hops | 4 |
| 6 hops | 1 |
Most used dependents
- org.apache.wicket » wicket-native-websocket-javax37 usages
- org.apache.syncope.client » syncope-client-console9 usages
- org.kwicket » kwicket-core8 usages
- org.wicketstuff » wicketstuff-restannotations7 usages
- org.apache.syncope.client.idrepo » syncope-client-idrepo-common-ui5 usages
- org.apache.syncope.client.idrepo » syncope-client-idrepo-console5 usages
- org.wicketstuff » wicketstuff-serializer-fast25 usages
- org.wicketstuff » wicketstuff-datastore-tests5 usages
- org.apache.syncope.client.idrepo » syncope-client-idrepo-enduser4 usages
- org.wicketstuff » wicketstuff-serializer-common4 usages
- de.invesdwin » invesdwin-context-client-wicket4 usages
- org.wicketstuff » wicketstuff-rest-utils3 usages
- net.tirasa.syncope.wicket-enduser » syncope-wicket-enduser-app3 usages
- org.apache.syncope.client.idm » syncope-client-idm-console2 usages
- org.apache.syncope.ext.oidcc4ui » syncope-ext-oidcc4ui-client-common-ui2 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
