All reports
Medium

org.glassfish/jakarta.faces: Eclipse Mojarra: Reflected cross-site scripting via unencoded client window parameter

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120421

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-21

Description

In Eclipse Mojarra versions 2.2.0 through 4.0.28, 4.1.0 through 4.1.19, and 5.0.0-M1 through 5.0.0-M11, when URL client window mode is enabled (jakarta.faces.CLIENT_WINDOW_MODE=url), the client window id from the jfwid or jakarta.faces.ClientWindow request parameter is appended to generated URLs without URL-encoding. h:button renders such a URL into a JavaScript string literal, which allows reflected cross-site scripting. With com.sun.faces.enableCspNonce=true, the injected script runs on page load inside the nonce script element, bypassing the Content Security Policy.

A flaw was found in Eclipse Mojarra. When URL client window mode is enabled, the client window identifier parameter is appended to generated URLs without proper encoding. A remote attacker could exploit this by enticing a user to follow a malicious link, leading to reflected Cross-Site Scripting (XSS). This flaw allows the attacker to execute arbitrary scripts in the victim's browser session and potentially bypass Content Security Policy (CSP) protections.