cvelo
P3 · MediumCVSS 6.1EPSS 0.4%

XSS via h:commandScript f:param value

  • CVE-2026-139819
  • GHSA-pxjv-xmm7-jwxr
  • EUVD-2026-140053

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.

Text from the CVE.org record.

Recommendation

  • Eclipse Foundation Eclipse Mojarra

    • If you run 5.0.xupdate to 5.0.0-M14 or laterPatch update: breaking changes are unlikely
    • If you run 4.1.xupdate to 4.1.22 or laterPatch update: breaking changes are unlikely
    • If you run a version from 2.3.0 to before 4.0.31update to 4.0.31 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Eclipse Foundation Eclipse Mojarra

    Affected versionsFixed in
    from 5.0.0-M1 to before 5.0.0-M145.0.0-M14
    from 4.1.0 to before 4.1.224.1.22
    from 2.3.0 to before 4.0.314.0.31

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.