Improper Input Validation in Eclipse Langium's Sprotty Package
CVE-2026-118492

2LOW

Key Information:

Vendor
CVE Published:
9 November 2026

What is CVE-2026-118492?

In Eclipse Langium versions 3.0.0 and later, the langium-sprotty package fails to properly HTML-escape diagnostic messages prior to rendering them in the default hover popup. This issue arises when a Langium grammar permits cross-reference text that contains HTML markup (commonly via a STRING terminal). As a result, if an unresolved cross-reference occurs, the diagnostic message will include raw reference text. If a Sprotty diagram is displayed for a malicious source file under such conditions, hovering over the related error marker can trigger the execution of attacker-controlled JavaScript in the user's browser or webview, posing a significant security risk.

Affected Version(s)

Eclipse Langium 3.0.0 <= 4.4.0

References

CVSS V4

Score:
2
Severity:
LOW
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Eclipse Foundation Security Team
.