Read the docs

Reflected cross-site scripting in Eclipse Mojarra via h:commandScript

Priority MEDIUM 42CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

Eclipse Mojarra from 2.3.0 before 4.0.31, from 4.1.0 before 4.1.22 and from 5.0.0-M1 before 5.0.0-M14 is affected. The JavaScript string for an f:param value of h:commandScript escapes only quotes and backslashes, so a closing script tag injects HTML and JavaScript (CWE-79). When the application binds the value to request input, this is reflected cross-site scripting. With CSP nonce mode enabled, the same flaw affects f:param values of h:commandLink and h:commandButton, limited to HTML injection.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Description from the CNA

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.

Why it matters now

Fix Fixed Eclipse Mojarra (Eclipse Foundation): 4.0.31, 4.1.22, 5.0.0-M14

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Eclipse FoundationEclipse Mojarra2.3.0 to before 4.0.31; 4.1.0 to before 4.1.22; 5.0.0-M1 to before 5.0.0-M144.0.31, 4.1.22, 5.0.0-M14Patch availableCNA
  • Eclipse Mojarra VendorEclipse Foundation Affected 2.3.0 to before 4.0.31; 4.1.0 to before 4.1.22; 5.0.0-M1 to before 5.0.0-M14 Fixed in 4.0.31, 4.1.22, 5.0.0-M14 Patch available CNA

Remediation

Upgrade Eclipse Mojarra to 4.0.31, 4.1.22 or 5.0.0-M14.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

  • Fix · CNA Eclipse Mojarra (Eclipse Foundation) Fixed in 4.0.31, 4.1.22, 5.0.0-M14

Timeline

  1. 2026-12-01 Threatist record created from CVE-2026-139819

References

  • TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
  • TI-2014-07619 Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x… CVSS 3.1CRITICAL 9.8
  • TI-2026-93743 Remote heap out-of-bounds read/write in Eclipse Mosquitto CVSS 3.1CRITICAL 9.8
  • TI-2026-81947 Unauthenticated command injection in Eclipse Che che-machine-exec CVSS 3.1CRITICAL 9.8
  • TI-2026-13216 CWE-863: ABAC authorization bypass via trailing slash route normalization in Eclipse BaSyx Go Components CVSS 3.1CRITICAL 9.8
  • TI-2026-06514 Path traversal in Eclipse BaSyx CVSS 3.1CRITICAL 10.0
See all 513 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences