CVE-2026-84231 Details
Description
Improper neutralization of input during web page generation in Apache Wicket. org.apache.wicket.markup.html.link.ExternalLink builds a JavaScript click handler and writes it into the tag's onclick attribute whenever the markup tag the component is bound to is not an a, link or area element. The URL held in the component's model is concatenated into a single-quoted JavaScript string literal in that handler without being escaped for that context. The same happens on the neighbouring branch, taken when popup settings are attached, where the value is concatenated into the window.open() call built by org.apache.wicket.markup.html.link.PopupSettings#getPopupJavaScript(). The only escaping applied is the markup escaping that every attribute value receives as the tag is written, which replaces an apostrophe with a character reference. A browser decodes character references in an attribute value before it compiles the event handler, so the apostrophe is restored, closes the string literal, and the rest of the model value is executed as script in the application's origin. An application is affected where it binds an ExternalLink to a markup tag that is not an anchor, such as a button or a span, and the URL in the model holds data an attacker can influence, which is the ordinary use of the component rather than a misuse of it. Nothing runs until a user activates the element. This issue affects Apache Wicket: from 8.0.0 through 8.19.0. Users of Apache Wicket 7.x or older, which are no longer supported, should upgrade to a supported version. Users are recommended to upgrade to version 8.20.0, which fixes the issue.
A cross-site scripting (XSS) vulnerability has been identified in Apache Wicket versions 8.0.0 prior to 8.19.0. The issue arises in the ExternalLink component when it is bound to a markup tag that is not an anchor, link, or area element. In such cases, the component generates a JavaScript click handler that is inserted into the tag's onclick attribute. The vulnerability occurs because the URL from the component's model is concatenated into a single-quoted JavaScript string literal without proper escaping for that context. This lack of appropriate neutralization allows an attacker to inject malicious scripts that are executed in the application's origin when the element is activated. The same unescaped concatenation occurs when popup settings are applied, compromising the window.open() call with the injected script. An application is vulnerable if it uses ExternalLink in the ordinary manner, with model data that can be influenced by an attacker.
Users are advised to upgrade to Apache Wicket version 8.20.0, which addresses this vulnerability. Those using Apache Wicket 7.x or older should upgrade to a supported version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 1, 2026CISA-ADP
Assessed Nov 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.apache.org/thread.html/39kz9838w25797bpkxn1hvfsm8jtc4zv | [email protected] | AdvisoryMailing ListRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Apache Wicket | >= 8.0.0, <= 8.19.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 6, 2026 | CVE Modified | CISA-ADP |
| Nov 1, 2026 | New CVE Received | [email protected] |
Volerion