Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › Eclipse Foundation

High 8.7 2 CVEs Analysis

Eclipse Langium Flaws Allow Event-Loop Denial of Service and Script Injection in Sprotty Hovers

Two Eclipse Langium advisories published on 2026-11-09 cover unrelated flaws. CVE-2026-124683 (HIGH, CVSS 8.7) lets a crafted document stall the Node.js event loop when opt-in indentation-aware tokenizing is used. CVE-2026-118492 (LOW, CVSS 2.0) can allow attacker JavaScript to run through an unescaped diagnostic in the langium-sprotty hover popup.

What to look into

  • 2 vulnerabilities in Eclipse Foundation Eclipse Langium: 1 high, 1 low (CVSS up to 8.7).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-124683 (8.7 high): Eclipse Langium CVE-2026-124683: quadratic tokenization in indentation-aware lexer enables DoS. An attacker without an account can exploit this over the network, without any user action.
  • 1 of 2 can be attacked over the network without logging in, 1 of them without anyone clicking anything.
  • Kinds of flaws: Inefficient Algorithmic Complexity; Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
BrowsersJavaScriptVulnerabilitiesWeb

Key points

  • CVE-2026-124683 is rated HIGH (CVSS 8.7) and affects Langium 3.2.0 through 4.4.0.
  • Crafted documents can block the Node.js event loop for tens of seconds via the opt-in indentation-aware tokenizer.
  • Default lexer and token builder users are not affected by the denial-of-service flaw.
  • CVE-2026-118492 is rated LOW (CVSS 2.0) and enables script injection in langium-sprotty hover popups from affected versions 3.0.0 onward.
  • The XSS risk requires a grammar that permits markup in cross-reference text and a user hovering an error in a malicious file.

Eclipse Langium is a framework from the Eclipse Foundation for building language tooling such as parsers, language servers and editor integrations. The two records published on 2026-11-09 describe different flaws in different parts of the project: one is a denial-of-service issue, the other a script injection issue in a diagram view.

Denial of service in indentation-aware tokenizing

CVE-2026-124683 (CVSS 8.7, HIGH) affects Langium 3.2.0 through 4.4.0 and is classified as inefficient algorithmic complexity (CWE-407). The opt-in IndentationAwareTokenBuilder and IndentationAwareLexer rescan the preceding document text to recompute line numbers when emitting DEDENT tokens. Documents whose indentation changes on most lines therefore take quadratic time to tokenize. Because tokenization is synchronous, a crafted document of a few hundred kilobytes can block the Node.js event loop for tens of seconds, affecting every user served by that process. Languages built with the default lexer and token builder are not affected.

Script injection in the Sprotty hover popup

CVE-2026-118492 (CVSS 2.0, LOW) affects Langium 3.0.0 and later in the langium-sprotty package. Diagnostic messages shown by the default hover popup from addHoverPopupHandler are not HTML-escaped. If a grammar allows cross-reference text to contain markup, for example through a STRING terminal, an unresolved reference produces a message containing that literal text. When a diagram is opened for a malicious source file and a user hovers the error marker, attacker-controlled JavaScript can run in the browser or webview. The low score reflects the record's rating, but the practical impact depends on where the diagram is embedded.

The batch matters most to teams running language servers or web-based editors that process documents from untrusted sources.

What to do

  1. Check whether any grammar uses IndentationAwareTokenBuilder or IndentationAwareLexer, and prioritize upgrading those services beyond the affected range using the fixed release named in the vendor advisory.
  2. Review grammars for STRING terminals that can appear in cross-references, and treat langium-sprotty diagrams opened from untrusted files as a script-injection risk until patched.
  3. Run language servers that handle untrusted input with resource limits or timeouts so a slow tokenization cannot take down shared services.
  4. Confirm the installed Langium version with your package manager's lockfile and re-scan after updating.

Our article about all 2 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 2 vulnerabilities

  • CVE-2026-124683 8.7 Eclipse Langium CVE-2026-124683: quadratic tokenization in indentation-aware lexer enables DoS
  • CVE-2026-118492 2.0 CVE-2026-118492: Eclipse Langium's Sprotty hover popup does not escape diagnostic HTML

Frequently asked questions

How many Eclipse Foundation Eclipse Langium vulnerabilities were published on November 9, 2026?

2 vulnerabilities: 1 high, 1 low, with CVSS scores up to 8.7.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-124683 (CVSS 8.7): Eclipse Langium CVE-2026-124683: quadratic tokenization in indentation-aware lexer enables DoS.

Original records