llamaCVEVulnerability Intelligence
/
angular

CVE-2026-50178

Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension

Specific setups onlyParche disponiblecross-site scripting (XSS)
Descargar PNG JSON
CVSS 4.0
8.7
Alta
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión21.2.4
Exposición149 dDesde la divulgación, 22 jun 2026, 10:20 a. m.
Detección147 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
22 jun 26
17 nov 26
18 nov 26
19 nov 26
22 jun 26
30 jul 26
5 sept 26
12 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-50178 divulgada · CVSS 8.7 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

The Angular Language Service VS Code Extension provides a rich editing experience for Angular templates. the client-side Angular Language Service VS Code extension configures the tooltip Markdown renderer with the isTrusted: true option (located in client/src/client.ts). This setting instructs VS Code to trust all rendered content it receives, which enables active elements such as command: URIs. However, the background Angular Language Server process fails to escape or sanitize brackets, raw links, and control characters from JSDoc strings before forwarding the hover Markdown content (located in server/src/handlers/hover.ts and server/src/text_render.ts). An attacker can leverage this behavior by crafting a project TypeScript or JavaScript file (or a third-party npm package dependency) containing a malicious JSDoc tooltip with an embedded active command link. When a developer hovers over the target symbol to render the tooltip and clicks the malicious link, the IDE executes the command sequence directly on the developer's host machine. Prior to 21.2.4, This vulnerability is fixed in 21.2.4.

Affects the VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4, triggered by a malicious JSDoc tooltip in project code or an npm dependency. Fixed in 21.2.4.

¿Qué significa?A malicious JSDoc tooltip in a project TypeScript or JavaScript file, or in a third-party npm dependency, can contain a command link. If a developer hovers over the symbol and clicks the link, arbitrary code runs on the developer's machine.
¿Quién está afectado?The VS Code Angular Language Service extension (Angular.ng-template) prior to 21.2.4 is affected. Check the installed version of the extension in the VS Code Extensions view.
¿Qué hacer?Update the Angular.ng-template extension to 21.2.4 or later.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
VS Code Angular Language Service extension (Angular.ng-template) prior to 21.2.4“Any developer using the VS Code Angular Language Service extension ( Angular.ng-template ) prior to version 21.2.4”
02
A project TypeScript or JavaScript file, or a third-party npm dependency, containing a malicious JSDoc tooltip“crafting a project TypeScript or JavaScript file (or a third-party npm package dependency) containing a malicious JSDoc tooltip”
03
Developer hovers over the symbol and clicks the malicious link in the tooltip“The developer must hover over the target symbol to render the Markdown tooltip popup and click the active link inside the balloon bubble.”
¿Quién debe revisar?Developers using the VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4 who open Angular projects or install npm dependencies
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
angular · Angular.ng-template< 21.2.4
21.2.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
angular
Corregida 21.2.4 — —
Versiones corregidas21.2.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/angular/angular/security/advisories/GHSA-q94j-3wj3-4xcm

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.