CVE-2026-118492
Eclipse Langium cross-site scripting in diagram diagnostic messages
A local attacker can run JavaScript in a browser or webview when a user hovers over an error marker in a crafted file.
Texto original en inglés · Ver en español
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
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-118492 divulgada · CVSS 2 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación PoC pública | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
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.
Descripción original del registro (eclipse)
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Eclipse Langium |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1018https://github.com/eclipse-langium/langium/security/advisories/GHSA-7c4f-7qwx-hmcvhttps://gitlab.eclipse.org/security/cve-assignment/-/work_items/512Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
