CVE-2026-139819
XSS via h:commandScript f:param value
- Severity
- medium CVSS 6.1 (v3.1)
- Affects
- Eclipse Mojarra · Eclipse Foundation
- Weakness
- CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
- Published
- 1 December 2026 by eclipse
In Eclipse Mojarra versions 2.3.0 to 4.0.30, 4.1.0 to 4.1.21 and 5.0.0-M1 to 5.0.0-M13, the JavaScript string literal which is rendered for an `f:param` value of `h:commandScript` escapes only single quote and backslash. The literal is written into a `script` element, so a value containing `</script>` ends the element and injects HTML and JavaScript into the page. When the application binds the value to request input, this is a reflected cross-site scripting vulnerability. When the CSP nonce mode is enabled, the same applies to `f:param` values of `h:commandLink` and `h:commandButton`, though the Content-Security-Policy then limits the impact to HTML injection.
Our coverage
We have not written about this one. Know why it matters? Send a tip.