CVE-2026-139819
published medium CVSS 3.1 · 6.1XSS via h:commandScript f:param value
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Eclipse Foundation | — | Eclipse Mojarra2.3.0 to < 4.0.31 · 4.1.0 to < 4.1.22 · 5.0.0-M1 to < 5.0.0-M14 · Other versions: unaffected | Affected | Not stated | eclipse |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- eclipse · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Eclipse Foundation | Eclipse Mojarra | 2.3.0 to < 4.0.31 (affected · semver)4.1.0 to < 4.1.22 (affected · semver)5.0.0-M1 to < 5.0.0-M14 (affected · semver)Default: unaffected | eclipse · cna |
Weaknesses
2- CWE-79 CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
5- https://github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd9f513ad
- https://github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1d6fb762
- https://github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54
- https://gitlab.eclipse.org/security/cve-assignment/-/work_items/658
- https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575
Provider assertions
2eclipse · cna
XSS via h:commandScript f:param value
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 34cc1d73ecc4478f80c38adf1d74f23231ea498f6d67ab227fb4146474643bf9
- Ingested
- 01 Dec 2026, 15:32:52 UTC
- Source record
- Official CVE record