XSS via h:commandScript f:param value
Summary
| CVE | CVE-2026-139819 |
|---|---|
| State | PUBLISHED |
| Assigner | eclipse |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-01 11:18:55 UTC |
| Updated | 2026-12-01 11:18:55 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.1 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Problem Types: CWE-79 | CWE-116 | 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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 3.1 | CNA | CVSS | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Eclipse Foundation | Eclipse Mojarra | affected 2.3.0 4.0.31 semver | Not specified |
| CNA | Eclipse Foundation | Eclipse Mojarra | affected 4.1.0 4.1.22 semver | Not specified |
| CNA | Eclipse Foundation | Eclipse Mojarra | affected 5.0.0-M1 5.0.0-M14 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1... | [email protected] | github.com | |
| github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758a... | [email protected] | github.com | |
| gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575 | [email protected] | gitlab.eclipse.org | |
| github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd... | [email protected] | github.com | |
| gitlab.eclipse.org/security/cve-assignment/-/work_items/658 | [email protected] | gitlab.eclipse.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Mauricio Urizar, DeepSecurity.pe Research Team (en)
There are currently no legacy QID mappings associated with this CVE.