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.
Published: 2026-11-09
Score: 2 Low
EPSS: n/a
KEV: No
Impact: Client‑side script execution (XSS)
Action: Patch Immediately
AI Analysis

Impact

The flaw in Eclipse Langium’s langium‑sprotty component fails to HTML‑escape diagnostic messages shown in the default hover popup. When a grammar accepts cross‑reference text that can contain HTML, an unresolved reference results in a diagnostic message that embeds the raw ref text. If a user opens a malicious file in a Sprotty diagram and hovers over the error marker, attacker‑controlled JavaScript can execute in the browser or webview, allowing the attacker to run arbitrary code in the victim’s context. This is a CWE‑79 Cross‑Site Scripting vulnerability.

Affected Systems

The vulnerability affects all Eclipse Langium versions 3.0.0 and later distributed by the Eclipse Foundation.

Risk and Exploitability

The CVSS score of 2.0 indicates a low severity, mainly because exploitation requires an attacker‑controlled file and a user action of hovering over the marker. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog. Even with these mitigations, an attacker could execute arbitrary JavaScript within the user’s browser or webview, but will need the victim to open the malicious file. No public exploits have been reported.

Generated by OpenCVE AI on November 9, 2026 at 17:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Eclipse Langium release where diagnostic messages are properly escaped.
  • If an immediate upgrade is not possible, remove or disable the addHoverPopupHandler so that hover popups are not shown.
  • Implement a strict content‐security policy that disallows inline script execution in the webview or browser component used by Langium.
  • Validate any cross‑reference text defined in the grammar to ensure it does not contain HTML markup before it is used in diagnostics.

Generated by OpenCVE AI on November 9, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: eclipse

Published:

Updated: 2026-11-09T15:57:23.409Z

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

Link: CVE-2026-118492

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-118492

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T17:30:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')