Skip to content
Medium 6.1

XSS via h:commandScript f:param value

CVE-2026-139819 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Eclipse FoundationEclipse Mojarra
≥ 2.3.0, < 4.0.31→ 4.0.31
≥ 4.1.0, < 4.1.22→ 4.1.22
≥ 5.0.0-M1, < 5.0.0-M14→ 5.0.0-M14
Original description The description as published by the source.

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 `` 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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details