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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Eclipse Foundation | Eclipse Mojarra | 2.2.0 – < 4.0.29, 4.1.0 – < 4.1.20, 5.0.0-M1 – < 5.0.0-M12 | 4.0.29 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mojarra | No fix yet | — |
| Debian 13 | mojarra | No fix yet | — |
| Debian 12 | mojarra | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mojarra | No fix yet | — |
| Ubuntu 26.04 LTS | mojarra | No fix yet | — |
| Ubuntu 24.04 LTS | mojarra | No fix yet | — |
| Ubuntu 22.04 LTS | mojarra | No fix yet | — |
| Ubuntu 20.04 LTS | mojarra | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mojarra | No fix yet | — |
| Ubuntu 16.04 LTS | mojarra | No fix yet | — |