CVE-2026-139819
JSON

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 packageVersionsReported by
Eclipse Foundation Eclipse Mojarrafrom 2.3.0 before 4.0.31, from 4.1.0 before 4.1.22, from 5.0.0-M1 before 5.0.0-M14CVE List

Classification

CWE-79CWE-116

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139819 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-139819 changed 2026-12-01Public domain