# CVE-2026-139819: XSS via h:commandScript f:param value

- Severity: Medium 6.1 (CVSS:3.1, scored by eclipse) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T10:35:14.240Z
- Modified: 2026-12-01T16:18:16.907Z
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Eclipse Foundation Eclipse Mojarra: from 2.3.0 before 4.0.31; from 4.1.0 before 4.1.22; from 5.0.0-M1 before 5.0.0-M14

## References

- <https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575>
- <https://gitlab.eclipse.org/security/cve-assignment/-/work_items/658>
- <https://github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54>
- <https://github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1d6fb762>
- <https://github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd9f513ad>

## Sources

- CVE List: [CVE-2026-139819](https://www.cve.org/CVERecord?id=CVE-2026-139819), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139819](https://nvd.nist.gov/vuln/detail/CVE-2026-139819), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139819 · Whole record: https://cve.day/CVE-2026-139819.json · Rebuilt by cve.day 2026-12-01T16:32:15.868Z
