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.

Project Subscriptions

Vendors Products
Eclipse Subscribe
Eclipse Langium Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 16 Nov 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 12 Nov 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Eclipse
Eclipse eclipse Langium
Vendors & Products Eclipse
Eclipse eclipse Langium

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Title Unescaped Diagnostic Messages Enable JavaScript Execution in Eclipse Langium Hover Popups

Mon, 09 Nov 2026 17:45:00 +0000

Type Values Removed Values Added
Title Unescaped Diagnostic Messages Enable JavaScript Execution in Eclipse Langium Hover Popups

Mon, 09 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 2, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: eclipse

Published:

Updated: 2026-11-12T16:26:15.625Z

Reserved: 2026-10-28T11:37:34.094Z

Link: CVE-2026-118492

cve-icon Vulnrichment

Updated: 2026-11-12T16:26:10.820Z

cve-icon NVD

Status : Deferred

Published: 2026-11-09T16:17:26.627

Modified: 2026-11-12T20:07:11.090

Link: CVE-2026-118492

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-12T20:09:30Z

Weaknesses