Technical impact
The vulnerability allows an attacker to inject arbitrary JavaScript code that is executed in the victim’s browser when a crafted URL containing a client window identifier is visited. Because the identifier is appended to URLs without URL‑encoding and is rendered inside a JavaScript string literal, the attack propagates directly to the page’s context, enabling defacement, cookie theft or the execution of further malicious actions through the victim’s authentication credentials. The underlying weakness corresponds to CWE‑79, which is reflected XSS that bypasses normal browser defenses.
Affected Systems
Eclipse Mojarra servlet component is affected whenever URL client window mode is enabled (`jakarta.faces.CLIENT_WINDOW_MODE=url`). Versions vulnerable include the 2.2.0 through 4.0.28 series, 4.1.0 through 4.1.19 series, and 5.0.0‑M1 through 5.0.0‑M11 releases. Any JavaServer Faces application that incorporates these releases and uses URL client window mode is at risk.
Risk and Exploitability
With a CVSS score of 6.1, this issue is considered moderate but represents a valid web‑application risk. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting that it has not yet been widely exploited in the wild, yet the impact is still significant. Based on the description, the likely attack vector is an attacker crafting a malicious link containing a forged `jfwid` or `jakarta.faces.ClientWindow` parameter; when a user opens the link the script will run immediately. If the application is also using `com.sun.faces.enableCspNonce=true`, the exploited script executes within the nonce‑protected script element, effectively bypassing restrictive CSL policies and amplifying the potential damage.