{"id":"CVE-2026-118492","state":"PUBLISHED","title":"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 `addH","description":"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.","publishedAt":"2026-11-09T15:57:23.409Z","updatedAt":"2026-11-12T16:26:15.625Z","severity":{"score":2,"label":"Low","version":"4.0","vector":"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","source":"eclipse"},"assigner":"eclipse","products":["Eclipse Foundation Eclipse Langium"],"affected":[{"vendor":"Eclipse Foundation","product":"Eclipse Langium","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"4.4.0","versionType":"semver"}]}],"references":["https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1018","https://github.com/eclipse-langium/langium/security/advisories/GHSA-7c4f-7qwx-hmcv","https://gitlab.eclipse.org/security/cve-assignment/-/work_items/512"],"weaknesses":["CWE-79"],"ingestedAt":"2026-11-12T16:34:06.564Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118492.json","commit":"922c2cffe6b101abae70929a10ee45e369e3aa56","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118492","state":"PUBLISHED","datePublished":"2026-11-09T15:57:23.409Z","dateUpdated":"2026-11-12T16:26:15.625Z","assignerShortName":"eclipse","assignerOrgId":"e51fbebd-6053-4e49-959f-1b94eeb69a2c","dateReserved":"2026-10-28T11:37:34.094Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Eclipse Foundation","product":"Eclipse Langium","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"4.4.0","versionType":"semver"}]}],"references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1018"},{"url":"https://github.com/eclipse-langium/langium/security/advisories/GHSA-7c4f-7qwx-hmcv"},{"url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/512"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NO","Recovery":"AUTOMATIC","valueDensity":"DIFFUSE","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"LOW","baseScore":2,"vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79","type":"CWE"}]}],"providerMetadata":{"shortName":"eclipse","orgId":"e51fbebd-6053-4e49-959f-1b94eeb69a2c","dateUpdated":"2026-11-09T15:57:23.409Z"},"impacts":[{"capecId":"CAPEC-63","descriptions":[{"lang":"en","value":"CAPEC-63"}]}],"credits":[{"lang":"en","value":"Eclipse Foundation Security Team","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.5"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/eclipse-langium/langium/security/advisories/GHSA-7c4f-7qwx-hmcv","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-12T16:25:53.162104Z","id":"CVE-2026-118492","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-12T16:26:15.625Z"}}]}}}