{"id":"CVE-2026-139819","summary":"XSS via h:commandScript f:param value","details":"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.","modified":"2026-12-01T16:45:30.041041846Z","published":"2026-12-01T10:35:14.240Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139819.json","unresolved_ranges":[{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"2.3.0"},{"fixed":"4.0.31"},{"introduced":"4.1.0"},{"fixed":"4.1.22"},{"introduced":"5.0.0-M1"},{"fixed":"5.0.0-M14"}],"source":"AFFECTED_FIELD"}]}],"cna_assigner":"eclipse","cwe_ids":["CWE-116","CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139819.json"},{"type":"FIX","url":"https://github.com/eclipse-ee4j/mojarra/commit/1739f6ac368e66672f8d666673c3e9fbd9f513ad"},{"type":"FIX","url":"https://github.com/eclipse-ee4j/mojarra/commit/5780c3a3621c43bf3a055a2c1a0a42de1d6fb762"},{"type":"FIX","url":"https://github.com/eclipse-ee4j/mojarra/commit/707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54"},{"type":"WEB","url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/658"},{"type":"WEB","url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1575"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139819"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/eclipse-ee4j/mojarra","events":[{"introduced":"0"},{"fixed":"707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54"},{"fixed":"5780c3a3621c43bf3a055a2c1a0a42de1d6fb762"},{"fixed":"1739f6ac368e66672f8d666673c3e9fbd9f513ad"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_COMMIT","range":[{"fixed":"707e9e5a3fe6a68cf4ddecc81dd60758ac04ab54"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"5780c3a3621c43bf3a055a2c1a0a42de1d6fb762"}]},{"range":[{"fixed":"1739f6ac368e66672f8d666673c3e9fbd9f513ad"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["5.0.0-M3","initial-contribution","2.3.3.102"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139819.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}