CVE-2026-49241
highpriority · track · 35OT risk · elevatedEPSS 0.002 · 15 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.3–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
- angular angular language service< 21.2.4nvdUScpe:2.3:a:angular:angular_language_service:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-2038Angular: Mehrere SchwachstellenDeutsch2026-06-22csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Angular ausnutzen, um beliebigen Programmcode auszuführen, um einen Cross-Site Scripting Angriff durchzuführen, um Informationen offenzulegen, um Sicherheitsvorkehrungen zu umgehen, und um einen Denial of Service Angriff durchzuführen.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/angular/angular/pull/68857cnnvd
- https://github.com/angular/angular/pull/68886cnnvd
- https://github.com/angular/angular/security/advisories/GHSA-ccq4-xmxr-8hcqcnnvd
- https://github.com/angular/angular/pull/68857enisa_euvd
- https://github.com/angular/angular/pull/68886enisa_euvd
- https://github.com/angular/angular/security/advisories/GHSA-ccq4-xmxr-8hcqenisa_euvd
- https://github.com/angular/angular/pull/68857Issue Trackingnvd
- https://github.com/angular/angular/pull/68886Issue Trackingnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan