{"id":"CVE-2026-139819","aliases":["CVE-2026-139819"],"related":[],"kind":"vulnerability","state":"published","title":"XSS via h:commandScript f:param value","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-12-01T10:35:14.240Z","modified":"2026-12-01T16:18:16.907Z","severity":{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"2.3.0","fixed":"4.0.31","status":"affected"},{"type":"semver","introduced":"4.1.0","fixed":"4.1.22","status":"affected"},{"type":"semver","introduced":"5.0.0-M1","fixed":"5.0.0-M14","status":"affected"}],"vendor":"Eclipse Foundation","product":"Eclipse Mojarra","source":"cvelist"}],"references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575","tags":[],"sources":["cvelist","nvd"]},{"url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/658","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1d6fb762","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd9f513ad","tags":[],"sources":["cvelist","nvd"]}],"credits":["Mauricio Urizar, DeepSecurity.pe Research Team"],"assigner":"eclipse","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T15:19:26.492Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139819","url":"https://www.cve.org/CVERecord?id=CVE-2026-139819","licence":"CVE Terms of Use","modified":"2026-12-01T15:25:09.184Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139819","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139819","licence":"Public domain","modified":"2026-12-01T16:18:16.907Z"}],"updatedAt":"2026-12-01T16:32:15.868Z"}