CVE-2026-87718
Apache Wicket: CSP headers silently omitted for pages served through nested request handler delegates
Description
Apache Wicket 10.10.0, 10.11.0 and 9.24.0 do not set the Content-Security-Policy headers on a page whose render request handler is wrapped in more than one IRequestHandlerDelegate. The framework unwraps only a single delegate level when deciding whether a request renders a page, so with a deeper chain, for example an application-provided delegating request mapper combined with CryptoMapper, the page is served without any CSP header even though CSP is enabled, and no error or warning is raised. The nonce-based protection Wicket applies to inline scripts and styles, together with any other CSP directives configured by the application, is thereby lost for those pages, exposing them to content injection the policy was meant to prevent. Applications on stock Wicket that do not wrap request handlers themselves are not affected. Versions before 10.10.0 and 9.24.0 handled nested delegates correctly. Users are recommended to upgrade to version 10.12.0 or 9.25.0, which fix the issue.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.wicket » wicket-corepreliminary | = 9.24.0>= 10.10.0, <= 10.11.0 | - |
Blast radius
13% of the dependent artifacts (31) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 167 |
| 2 hops | 300 |
| 3 hops | 106 |
| 4 hops | 8 |
Most used dependents
- org.apache.wicket » wicket-extensions371 usages
- org.apache.wicket » wicket223 usages
- org.geoserver.web » gs-web-core194 usages
- org.apache.wicket » wicket-spring182 usages
- org.apache.wicket » wicket-tester145 usages
- org.apache.wicket » wicket-auth-roles120 usages
- de.agilecoders.wicket » wicket-bootstrap-core70 usages
- de.agilecoders.wicket » wicket-bootstrap-extensions59 usages
- org.apache.wicket » wicket-ioc53 usages
- org.apache.wicket » wicket-devutils50 usages
- de.agilecoders.wicket.webjars » wicket-webjars50 usages
- org.apache.wicket » wicket-native-websocket-javax37 usages
- org.geoserver.web » gs-web-sec-core36 usages
- org.wicketstuff » wicketstuff-annotationeventdispatcher25 usages
- org.wicketstuff » wicketstuff-input-events25 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.
