CVE-2026-139819: XSS via h:commandScript f:param value

Published Dec 1, 2026
·
Updated

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 Software

1 affected component
Eclipse Mojarra>=2.3.0<=4.0.30, >=4.1.0<=4.1.21, >=5.0.0-M1<=5.0.0-M13

Event History

Dec 1, 2026
CVE Published
via MITRE·10:35 AM
Data Sourced
via MITRE·10:35 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to script execution?

Applications are exposed when they use h:commandScript with an f:param whose value is bound to request input. An attacker can supply a value containing </script> to terminate the rendered script element and inject HTML and JavaScript.

2

What changes when CSP nonce mode is enabled?

With CSP nonce mode enabled, f:param values for h:commandLink and h:commandButton are also affected. However, the Content-Security-Policy limits the impact in that case to HTML injection.

3

How can I identify potentially affected code?

Review pages using h:commandScript with nested f:param elements and determine whether their values can be populated from request-controlled input. If CSP nonce mode is enabled, perform the same review for h:commandLink and h:commandButton.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203