Skip to main content

Angular Language Service CVE-2026-49241

| EUVDEUVD-2026-38258 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-22 GitHub_M
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Publish malicious Angular repo with .vscode/settings.json and tsserverlibrary.js
  2. Delivery
    Developer clones and opens folder in VS Code
  3. Exploit
    Angular Language Service reads workspace tsdk path without trust check
  4. Install
    Client passes --tsdk to Node language server
  5. C2
    Server require()s attacker-controlled tsserverlibrary.js
  6. Execute
    Arbitrary code executes as the developer
  7. Impact
    Credential 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

angular < 21.2.4

Affected Packages

euvd angular fix: 21.2.4

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 22, 2026 - 17:01 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
Popular dev extension, limited to Angular developers' workstations
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2026-88060 HIGH POC
8.6 Sep 10

Cross-site scripting via Angular's server-side rendering package (@angular/platform-server) allows arbitrary JavaScript

CVE-2026-88058 HIGH POC
8.6 Sep 10

Cross-site scripting in Angular's server-side rendering engine (`@angular/platform-server`) allows arbitrary JavaScript

CVE-2026-88056 HIGH POC
8.6 Sep 10

Server-Side Rendering in Angular's @angular/platform-server leaks server-side credentials to attacker-controlled origins

CVE-2025-66412 HIGH
8.5 Dec 01

Stored XSS in the Angular Template Compiler (npm package @angular/compiler) allows an authenticated attacker who can per

CVE-2026-22610 HIGH
8.5 Jan 10

Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized

CVE-2026-101895 HIGH
8.7 Sep 28

An unauthenticated remote attacker can lock up an Angular server-side rendering process by submitting HTML that contains

CVE-2025-62427 HIGH
8.7 Oct 16

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

CVE-2026-50178 HIGH
8.7 Jun 22

Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to

CVE-2026-41423 HIGH
8.7 May 08

Server-Side Request Forgery in Angular's @angular/platform-server (SSR) lets remote unauthenticated attackers hijack the

CVE-2026-111752 HIGH
8.2 Oct 20

Heap exhaustion and CPU starvation in @angular/router under Angular Server-Side Rendering on Node.js allow unauthenticat

CVE-2026-101896 HIGH
8.2 Sep 30

Denial of service in the npm package @angular/router when Server-Side Rendering (SSR) is enabled on Node.js allows an un

CVE-2026-111751 HIGH
8.2 Oct 20

Denial of service in @angular/router lets unauthenticated remote attackers crash Node.js server-side rendering workers b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy