{"id":"CVE-2026-118492","details":"In Eclipse Langium versions 3.0.0 and later, the langium-sprotty package does not HTML-escape diagnostic messages before rendering them in the default hover popup provided by `addHoverPopupHandler`. If a Langium grammar allows cross-reference text to contain HTML markup (such as through a STRING terminal), an unresolved cross-reference produces a diagnostic message that includes the literal ref text. When a Sprotty diagram is opened for a malicious source file under these conditions, and a user hovers over the corresponding error marker, attacker-controlled JavaScript can execute in the browser or webview.","aliases":["GHSA-7c4f-7qwx-hmcv"],"modified":"2026-11-14T02:30:32.049996249Z","published":"2026-11-09T15:57:23.409Z","database_specific":{"cna_assigner":"eclipse","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118492.json"},"references":[{"type":"WEB","url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/512"},{"type":"WEB","url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1018"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118492.json"},{"type":"ADVISORY","url":"https://github.com/eclipse-langium/langium/security/advisories/GHSA-7c4f-7qwx-hmcv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118492"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/eclipse-langium/langium","events":[{"introduced":"be0407ef03397fe04bf2dfbab387e13034d92279"},{"last_affected":"89d49680b39218af2e5b700cd3f4fdc122600ac4"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.0.0"},{"last_affected":"4.4.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["v4.4.0","v4.3.0","v4.2.0","v4.1.0","v4.0.0","v3.5.0","v3.4.0","v3.3.1","v3.2.0","v3.1.0","v3.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118492.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/AU:N/R:A/V:D"}]}