CVE-2026-139819
6.1medium
XSS via h:commandScript f:param value
- Severity
- 6.1medium CVSS:3.1 by eclipse
- Published
- Last changed
- Assigned by
- eclipse
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Eclipse Foundation Eclipse Mojarra | from 2.3.0 before 4.0.31, from 4.1.0 before 4.1.22, from 5.0.0-M1 before 5.0.0-M14 | CVE List |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139819 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-139819 changed 2026-12-01 | Public domain |