Technical impact
Apache Wicket’s SmartLinkLabel and SmartLinkMultiLineLabel components automatically convert detected URLs in displayed text into hyperlinks. The component escapes the text but then parses the escaped string for any pattern of the form scheme://rest and wraps each match in an anchor element whose href is exactly the matched text. Because the parser accepts any scheme and does not filter which one is allowed, a payload that specifies a scheme which executes script—such as javascript:—becomes an anchor that will run the script when a user clicks the link. The malicious script runs in the context of the application’s origin and in the user’s own session. This flaw is inherent to the component and applies to any text rendered by it; it is not contingent on configuration changes or unintended use.
Affected Systems
Apache Wicket versions 8.0.0 through 8.19.0, 9.0.0 through 9.24.0, and 10.0.0 through 10.11.0 are vulnerable. Versions 7.x and earlier are no longer supported and should be upgraded. Upgrading to 8.20.0, 9.25.0, or 10.12.0 removes the vulnerability.
Risk and Exploitability
The CVSS score of 7.4 indicates a high severity, while the EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to persuade a user to click a crafted link—an action that is typically part of phishing or social engineering tactics. The default Content‑Security‑Policy that Wicket 9.x and 10.x send can mitigate the script execution because it only permits scripts signed with a per‑response nonce; however, an application that has weakened or disabled CSP is fully exposed. Therefore, the risk is significant for vulnerable configurations, especially where users may follow injected links.