Technical impact
The Apache Wicket utility method for escaping quotes in JavaScript strings fails to escape the backslash character. When input contains a backslash before a quote, the method produces a double backslash, leaving the following quote unescaped. This flaw allows an attacker to inject JavaScript code that runs under the application’s origin and in the session of the user who views the page, effectively enabling cross‑site scripting attacks.
Affected Systems
Any application built with Apache Wicket between 8.0.0 and 8.19.0, 9.0.0 and 9.24.0, or 10.0.0 and 10.11.0 is vulnerable when it calls the escapeQuotes method with input that may be influenced by an attacker. The vulnerability is also exposed through certain components of Wicket Extensions, such as AjaxEditableLabel, which passes validation messages through this method.
Risk and Exploitability
The CVSS score of 7.4 indicates a high severity. Exploitation requires that the application invoke escapeQuotes with data that can be controlled by an attacker; no additional authentication or administrative privileges are needed. Because the vulnerable output is rendered in a JavaScript string literal, attackers can inject scripts that execute with the user’s credentials, but the use of the public API means that local or remote attackers who can influence form input can trigger the flaw. The lack of an EPSS score and absence from the KEV catalog do not diminish the potential for abuse; the flaw remains actionable and can be leveraged by anyone capable of submitting crafted input to the vulnerable components.