llamaCVEVulnerability Intelligence
/
angular

CVE-2026-49241

Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Code 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:16 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
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
22 jun 26
23 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-49241 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. Prior to 21.2.4, the client-side Angular Language Service VS Code extension reads the custom TypeScript SDK paths typescript.tsdk and js/ts.tsdk.path directly from workspace configurations (.vscode/settings.json) without verifying VS Code Workspace Trust state or asking for user consent (located in client/src/client.ts). The client-side extension then passes the parsed settings path as a command-line argument (--tsdk) to the background Node.js language server process. During server initialization, the background language server resolves and dynamically imports (via standard Node.js require()) the module library tsserverlibrary.js relative to the workspace-specified custom directory path. An attacker can exploit this behavior by committing a repository containing a local malicious tsserverlibrary.js script inside a custom folder, and a crafted .vscode/settings.json file pointing to that folder. When a developer opens the repository folder in VS Code, the extension automatically attempts to initialize and load the server, which dynamically resolves, loads, and executes the malicious script silently in the background. This vulnerability is fixed in 21.2.4.

Affects the VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4 when a workspace .vscode/settings.json sets the TypeScript SDK path to a malicious tsserverlibrary.js. Fixed in 21.2.4.

¿Qué significa?The extension reads custom TypeScript SDK paths from workspace settings. A project's .vscode/settings.json can point it at a malicious tsserverlibrary.js, which the language server loads and runs, executing arbitrary code on the developer's machine.
¿Quién está afectado?The VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4 is affected. The risky setup is a workspace .vscode/settings.json that sets typescript.tsdk or js/ts.tsdk.path. The extension version can be checked in the VS Code Extensions view.
¿Qué hacer?Update the Angular Language Service VS Code extension to 21.2.4 or later. The advisory data gives no other patch identifiers.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4“prior to version 21.2.4 who opens a project workspace containing a custom local .vscode/settings.json settings parameter is vulnerable”
02
Workspace .vscode/settings.json sets typescript.tsdk or js/ts.tsdk.path to a folder containing a malicious tsserverlibrary.js“reads the custom TypeScript SDK paths typescript.tsdk and js/ts.tsdk.path directly from workspace configurations”
¿Quién debe revisar?Developers running the VS Code Angular Language Service extension (Angular.ng-template) before 21.2.4 who open repositories or project workspaces containing a custom .vscode/settings.json
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< 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-ccq4-xmxr-8hcq
Otrahttps://github.com/angular/angular/pull/68857
Otrahttps://github.com/angular/angular/pull/68886

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