CVE-2026-120421 Reflected XSS via client window id in URL client window mode
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-120421?
CVE-2026-120421 is a medium-severity vulnerability in Eclipse Mojarra, published on 4 Nov 2026.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-120421?
How do I fix CVE-2026-120421?
No fix has been published for CVE-2026-120421 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-120421 being exploited?
There is no known exploitation of CVE-2026-120421 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-120421, GHSA-4hw7-pfg5-v529, UBUNTU-CVE-2026-120421.