GHSA-297v-g8mm-qj4h: High severity Eclipse Langium vulnerability

Published Nov 9, 2026
·
Updated

Eclipse Langium versions 3.2.0 through 4.4.0 contain an inefficient algorithmic complexity issue (CWE-407) in the opt-in IndentationAwareTokenBuilder and IndentationAwareLexer. When producing DEDENT tokens, the token builder recomputes line numbers by re-scanning the entire preceding document text. A document whose indentation changes on most lines then takes 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. That causes a DoS for every user served by the same process. Languages built with the DefaultLexer and DefaultTokenBuilder are unaffected.

Affected Software

1 affected component
Eclipse Langium>=3.2.0<=4.4.0

Event History

Nov 9, 2026
CVE Published
via OSV·04:02 PM
Data Sourced
via OSV·04:02 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Langium-based applications are affected?

Only languages that opt in to IndentationAwareTokenBuilder and IndentationAwareLexer are affected. Applications using DefaultLexer and DefaultTokenBuilder are unaffected.

2

What must an attacker provide to trigger the denial of service?

An attacker needs to cause the application to tokenize a crafted document with indentation changes on most lines. A document of a few hundred kilobytes can block the Node.js event loop for tens of seconds.

3

What is the impact in a shared Node.js process?

Because tokenization runs synchronously, the blocked event loop can deny service to every user handled by the same Node.js process.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203