Reflected XSS via client window id in URL client window mode
- CVE-2026-120421
- GHSA-4hw7-pfg5-v529
- EUVD-2026-116938
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.
Text from the CVE.org record.
Recommendation
Eclipse Foundation Eclipse Mojarra
- If you run 5.0.xupdate to 5.0.0-M12 or laterPatch update: breaking changes are unlikely
- If you run 4.1.xupdate to 4.1.20 or laterPatch update: breaking changes are unlikely
- If you run a version from 2.2.0 to before 4.0.29update to 4.0.29 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Eclipse Foundation Eclipse Mojarra
Affected versions Fixed in from 5.0.0-M1 to before 5.0.0-M12 5.0.0-M12 from 4.1.0 to before 4.1.20 4.1.20 from 2.2.0 to before 4.0.29 4.0.29
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.