CVE-2026-120421Eclipse Mojarra cross-site scripting (XSS)
CVSS score
6.1
Medium
CVSS 3.1 from eclipse.org
Exploit probability (EPSS)
0.21%
0.21% chance of exploitation in the next 30 days, higher than 11.2% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
In Eclipse Mojarra versions 2.2.0 through 4.0.28, 4.1.0 through 4.1.19, and 5.0.0-M1 through 5.0.0-M11, when URL client window mode is enabled (`jakarta.faces.CLIENT_WINDOW_MODE=url`), the client window id from the `jfwid` or `jakarta.faces.ClientWindow` request parameter is appended to generated URLs without URL-encoding. `h:button` renders such a URL into a JavaScript string literal, which allows reflected cross-site scripting. With `com.sun.faces.enableCspNonce=true`, the injected script runs on page load inside the nonce script element, bypassing the Content Security Policy.
Source: NVD · CNA: emo@eclipse.org
How to fix it, step by step
Check whether you're affected
Find every system running Eclipse Mojarra and compare its version with the affected versions.
Update to a fixed version
- Update Eclipse Mojarra to 4.0.29, 4.1.20, 5.0.0-M12 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
| Affected products | Versions |
|---|---|
| eclipse Eclipse Mojarra | ≥ 2.2.0, < 4.0.29 · ≥ 4.1.0, < 4.1.20 · ≥ 5.0.0-M1, < 5.0.0-M12 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-120421 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-120421?
CVE-2026-120421 has a CVSS 3.1 base score of 6.1 (medium).
Which versions are affected?
Eclipse Eclipse Mojarra (≥ 2.2.0, < 4.0.29; ≥ 4.1.0, < 4.1.20; ≥ 5.0.0-M1, < 5.0.0-M12)
Is there a patch for CVE-2026-120421?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.