Skip to content
6.1 Medium

CVE-2026-120421 Reflected XSS via client window id in URL client window mode

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.

CVSS 3.1 detail

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitable remotely over the network, without an account and if a user takes an action; the impact on data or service is limited.

Attack vector
Network
Attack complexity
Low
Privileges required
None
Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected products and versions

Product Affected versions Fixed in
Eclipse Mojarra 5.0 5.0.0-M1 → < 5.0.0-M12 5.0.0-M12
Eclipse Mojarra 4.1 4.1.0 → < 4.1.20 4.1.20
Eclipse Mojarra 2.2 2.2.0 → < 4.0.29 4.0.29
The 2 CVEs of Eclipse Mojarra →
Track this CVE