CVE-2026-84231

Apache Wicket: XSS in ExternalLink via the model URL when the component is bound to a non-anchor tag

Published Nov 1, 2026 CVSS 4.0 · 7.4 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Apache Wicket’s ExternalLink component can embed a user‑controlled URL inside a JavaScript click handler when the element is bound to a tag other than an &lt;a&gt;. The component concatenates the URL into a single‑quoted JavaScript string without proper escaping, allowing an attacker to inject arbitrary JavaScript that executes in the application’s origin when a user clicks the element. This reflected XSS flaw can lead to session hijacking, data theft, or defacement. The flaw is triggered only when the element is activated, so an attacker must craft a link that is interacted with by a target user.

Affected Systems

Apache Software Foundation: Apache Wicket versions 8.0.0 through 8.19.0 are affected. Versions 7.x and older are no longer supported and should be upgraded. Updating to 8.20.0 or later resolves the issue.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.4, indicating high risk, and is not listed in the CISA KEV catalog. Because the flaw requires a client to click a malicious link, exploitation depends on user interaction but still offers the attacker the ability to run code in the user’s browser connected to the application’s origin. No EPSS score is available, so the probability of exploitation is unknown, but the high severity score and lack of mitigation in affected releases mean the risk is significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Wicket to version 8.20.0 or later, which fixes the XSS flaw.
  • Audit your application for ExternalLink components bound to non‑anchor tags; either change them to use ordinary &lt;a&gt; elements or add custom validation/escaping for URLs.
  • Deploy a strong Content Security Policy that restricts inline script execution and disallows execution of dynamically generated script from unknown sources.

Generated by OpenCVE AI on November 1, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache wicket
Vendors & Products Apache
Apache wicket
Type Values Removed Values Added
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.
Title Apache Wicket: XSS in ExternalLink via the model URL when the component is bound to a non-anchor tag
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 7.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 6, 2026, 2:42 PM
Reserved
Sep 1, 2026, 12:07 PM
Status
Deferred
Published
Nov 1, 2026, 11:17 PM
Modified
Nov 6, 2026, 3:17 PM