{"id":"CVE-2026-139819","aliases":["EUVD-2026-140053","GHSA-pxjv-xmm7-jwxr","UBUNTU-CVE-2026-139819"],"status":"published","title":"XSS via h:commandScript f:param value","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 `\u003c/script\u003e` 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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00427,"percentile":0.38859,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-116","CWE-79"],"published":"2026-12-01T10:35:14Z","modified":"2026-12-03T20:48:20Z","affected":[{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-1","2.2.8-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-3","2.2.8-4","2.2.8-5"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-6"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-6"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-6"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-6build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"mojarra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.8-6","2.2.8-6build1"]}],"products":[{"vendor":"eclipse foundation","product":"eclipse mojarra"}],"references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575","tags":["web"]},{"url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/658","tags":["web"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54","tags":["fix"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1d6fb762","tags":["fix"]},{"url":"https://github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd9f513ad","tags":["fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139819","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-pxjv-xmm7-jwxr"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139819.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-139819","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139819","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-139819","title":"XSS via h:commandScript f:param value","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 `\u003c/script\u003e` 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.","status":"published","published":"2026-12-01T10:35:14.24Z","modified":"2026-12-01T15:25:09.184Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79","CWE-116"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T15:36:09.929469Z"}],"euvd":[{"id":"EUVD-2026-140053","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 `\u003c/script\u003e` 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.","status":"published","published":"2026-12-01T10:35:14Z","modified":"2026-12-01T15:25:09Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-12-01T15:18:55.650869Z"}],"ghsa":[{"id":"GHSA-pxjv-xmm7-jwxr","title":"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...","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 `\u003c/script\u003e` 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.","status":"published","published":"2026-12-01T12:31:26Z","modified":"2026-12-01T12:31:30Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-12-01T12:58:12.986961Z"}],"nvd":[{"id":"CVE-2026-139819","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 `\u003c/script\u003e` 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.","status":"published","published":"2026-12-01T11:18:55.633Z","modified":"2026-12-02T20:45:24.687Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79","CWE-116"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T16:21:11.956854Z"}],"osv":[{"id":"CVE-2026-139819","title":"XSS via h:commandScript f:param value","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 `\u003c/script\u003e` 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.","status":"published","published":"2026-12-01T10:35:14.24Z","modified":"2026-12-03T20:45:20.374386809Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-116","CWE-79"],"updated_at":"2026-12-02T21:28:42.350468Z"},{"id":"UBUNTU-CVE-2026-139819","upstream":["CVE-2026-139819"],"description":"(In Eclipse Mojarra versions 2.3.0 to 4.0.30, 4.1.0 to 4.1.21 and 5.0.0 ...)","status":"published","published":"2026-12-02T00:00:00Z","modified":"2026-12-03T20:48:20.742424935Z","updated_at":"2026-12-03T21:13:04.052985Z"}]}}
