CVE-2026-139819 PUBLISHED

XSS via h:commandScript f:param value

Assigner: eclipse
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS Score: 6.1

Product Status

Vendor Eclipse Foundation
Product Eclipse Mojarra
Versions Default: unaffected
  • affected from 2.3.0 to 4.0.31 (excl.)
  • affected from 4.1.0 to 4.1.22 (excl.)
  • affected from 5.0.0-M1 to 5.0.0-M14 (excl.)

Credits

  • Mauricio Urizar, DeepSecurity.pe Research Team finder

References

Problem Types

  • CWE-79 Improper neutralization of input during web page generation ('cross-site scripting') CWE
  • CWE-116 Improper Encoding or Escaping of Output CWE

Impacts

  • CAPEC-591 Reflected XSS