Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPublish malicious Angular repo with .vscode/settings.json and tsserverlibrary.js
-
DeliveryDeveloper clones and opens folder in VS Code
-
ExploitAngular Language Service reads workspace tsdk path without trust check
-
InstallClient passes --tsdk to Node language server
-
C2Server require()s attacker-controlled tsserverlibrary.js
-
ExecuteArbitrary code executes as the developer
-
ImpactCredential theft or supply-chain pivot
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires three concrete conditions: (1) the developer has the Angular Language Service VS Code extension installed at a version prior to 21.2.4; (2) the developer opens a repository controlled by the attacker that ships both a .vscode/settings.json setting js/ts.tsdk.path or typescript.tsdk to a workspace-relative directory and a malicious tsserverlibrary.js inside that directory; (3) the extension activates (any .ts/.html file open or Angular project detected). Limiting factors: user interaction (UI:P) is required - the developer must open the folder in VS Code - but no Workspace Trust acceptance, settings prompt, or other consent is needed because the vulnerable code path runs before any trust check. |
| Impact | Real-world risk is moderate-to-high for development teams that routinely clone third-party Angular repositories. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) score of 8.7 correctly captures network-deliverable, low-complexity exploitation with high CIA impact bounded only by UI:P (the developer must open the repo). No EPSS, KEV, or SSVC signals were supplied, and no public exploit identified at time of analysis, so widespread opportunistic exploitation appears unlikely; however, the patch diff itself effectively documents the technique, which typically accelerates PoC development. The NVD CWE-79 mapping conflicts with the description (this is code execution via dynamic require(), not cross-site scripting) - defenders should not rely on XSS-style controls. |
| Exploit ScenarioDerived | An attacker publishes a seemingly legitimate Angular project (for example on GitHub or npm-linked sample repo) containing a .vscode/settings.json that sets typescript.tsdk to ./.tools/ts and a malicious ./.tools/tsserverlibrary.js in the tree. When a developer clones and opens the folder in VS Code with the Angular Language Service extension installed, the extension passes the attacker-controlled --tsdk to the language server, which require()s the malicious tsserverlibrary.js, executing the attacker's Node.js code in the developer's user context with no prompt. No public exploit identified at time of analysis, though the upstream patch diff plainly reveals the exploitable path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently run code on a developer's machine simply by having them open a malicious repository in VS Code. The extension reads the typescript.tsdk and js/ts.tsdk.path workspace settings without checking Workspace Trust, then require()s a tsserverlibrary.js file from that attacker-controlled path. No public exploit identified at time of analysis, though the patch diff in PR #68857 clearly illustrates the exploit primitive.
RemediationAI
Vendor-released patch: Angular Language Service VS Code extension 21.2.4 - upgrade via the VS Code Marketplace or your enterprise extension distribution channel. The fix in PR #68857 enforces vscode.workspace.isTrusted before honoring workspace-level tsdk paths and adds an explicit Allow/Disallow prompt persisted in workspaceState, falling back to globalValue otherwise. As a compensating control until upgrade, instruct developers to open unfamiliar repositories in VS Code's Restricted Mode and decline 'Trust' on repos they have not vetted, and audit existing repos for .vscode/settings.json files containing js/ts.tsdk.path or typescript.tsdk pointing inside the working tree - the trade-off is that legitimate workspaces using a vendored TypeScript SDK will load the bundled SDK instead, possibly producing version mismatches in diagnostics. Reference: https://github.com/angular/angular/security/advisories/GHSA-ccq4-xmxr-8hcq.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability lives in the VS Code client portion of the Angular Language Service (vscode-ng-language-service/client/src/client.ts). VS Code exposes Workspace Trust to gate code execution paths triggered by untrusted .vscode/settings.json, but the extension bypassed this safeguard by calling config.get('js/ts.tsdk.path', config.get('typescript.tsdk', '')) and forwarding the value as a --tsdk command-line argument to the Node.js language server child process. During server initialization, Node.js's standard require() resolver loads tsserverlibrary.js relative to that attacker-supplied directory, producing arbitrary code execution in the language server process. Although NVD tags this CWE-79 (XSS), the actual root cause is closer to CWE-829 / CWE-94 (untrusted include / code injection via untrusted configuration), and CPE coverage (cpe:2.3:a:angular:angular) is overly broad - only the vscode-ng-language-service component is affected.
Know when Angular gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Repo is delivered over the network (AV:N), no special conditions or auth (AC:L/PR:N), but the developer must open the folder (UI:R); arbitrary code yields full CIA in the user context with no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
The Angular Language Service VS Code extension contains a vulnerability that enables attackers to execute arbitrary code on developer machines when engineers open a malicious repository. This directly threatens source code confidentiality, developer credential security, and the integrity of software releases. Organizations must immediately disable the extension to prevent supply chain compromise.
Since no vendor-released patch is available: disable/uninstall the extension immediately; enable VS Code Workspace Trust to block untrusted repositories; restrict developer repository access to verified internal sources only; implement endpoint monitoring to detect suspicious code execution from Node.js processes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Cross-site scripting via Angular's server-side rendering package (@angular/platform-server) allows arbitrary JavaScript
Cross-site scripting in Angular's server-side rendering engine (`@angular/platform-server`) allows arbitrary JavaScript
Server-Side Rendering in Angular's @angular/platform-server leaks server-side credentials to attacker-controlled origins
Stored XSS in the Angular Template Compiler (npm package @angular/compiler) allows an authenticated attacker who can per
Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized
An unauthenticated remote attacker can lock up an Angular server-side rendering process by submitting HTML that contains
Server-side request forgery in Angular's @angular/ssr package (all versions from 19.0.0-next.0 before 19.2.18, 20.0.0-ne
Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to
Server-Side Request Forgery in Angular's @angular/platform-server (SSR) lets remote unauthenticated attackers hijack the
Heap exhaustion and CPU starvation in @angular/router under Angular Server-Side Rendering on Node.js allow unauthenticat
Denial of service in the npm package @angular/router when Server-Side Rendering (SSR) is enabled on Node.js allows an un
Denial of service in @angular/router lets unauthenticated remote attackers crash Node.js server-side rendering workers b
EUVD-2026-38258
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB