CVE-2026-118492

Published Nov 9, 2026 CVSS 4.0 · 2 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The issue in Eclipse Langium’s langium‑sprotty component causes diagnostic messages from unresolved cross‑references to be inserted into hover popups without HTML‑escaping. When a grammar allows cross‑reference text to contain HTML—such as through a STRING terminal—the resulting diagnostic includes the raw reference text. A malicious source file that triggers an unresolved reference can therefore inject JavaScript; hovering over the error marker activates the injected code, delivering client‑side script execution within the browser or webview that is rendering the diagram. This flaw is identified as a CWE‑79 Cross‑Site Scripting vulnerability.

Affected Systems

The vulnerability impacts all Eclipse Langium distributions released by the Eclipse Foundation from version 3.0.0 onward. No other vendor or product outside of Eclipse Langium is affected according to the CNA data.

Risk and Exploitability

Although the CVSS score of 2.0 reflects a low overall risk, the vulnerability still permits arbitrary JavaScript in the victim’s browser context. The EPSS score is not available, and the issue is not in the CISA KEV catalog. Exploitation requires a client‑side action (hovering over an error marker) after the victim opens a crafted file. No public exploitation reports exist at this time, but the mechanism is straightforward enough that a determined attacker could trigger it with a phishing or malicious file distribution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Eclipse Langium release where diagnostic messages are correctly escaped.
  • If upgrading is not immediately possible, remove or disable the addHoverPopupHandler so hover popups are not shown.
  • Apply a 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 18:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Eclipse
Eclipse eclipse Langium
Vendors & Products Eclipse
Eclipse eclipse Langium
Type Values Removed Values Added
Title Unescaped Diagnostic Messages Enable JavaScript Execution in Eclipse Langium Hover Popups
Type Values Removed Values Added
Title Unescaped Diagnostic Messages Enable JavaScript Execution in Eclipse Langium Hover Popups
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
eclipse
Published
Updated
Nov 12, 2026, 4:26 PM
Reserved
Oct 28, 2026, 11:37 AM
Status
Deferred
Published
Nov 9, 2026, 4:17 PM
Modified
Nov 12, 2026, 8:07 PM