Skip to main content

Angular Language Service CVE-2026-50178

| EUVDEUVD-2026-38264 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 npm package with crafted JSDoc
  2. Delivery
    Developer installs dependency in Angular project
  3. Exploit
    Developer hovers over poisoned symbol
  4. Install
    Language server renders unsanitized tooltip
  5. C2
    Developer clicks embedded command link
  6. Execute
    VS Code executes command: URI on host
  7. Impact
    Attacker code runs as developer

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

Exploitation requires (1) the victim to have the Angular Language Service VS Code extension (angular.ng-template) installed at a version below 21.2.4, (2) the victim to open a workspace containing attacker-controlled TypeScript/JavaScript source - either directly or via an npm dependency whose JSDoc comments carry the malicious payload, and (3) the victim to both hover over the booby-trapped symbol to render the tooltip AND click the embedded link (CVSS UI:P passive interaction). Exploitation is limited by the fact that VS Code Restricted Mode (the default for untrusted workspaces since VS Code 1.57) blocks the command: URI activation surface, so developers who keep untrusted folders in Restricted Mode are not exposed without an explicit Trust action.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H reflects a network-reachable, low-complexity attack with no privileges but passive user interaction (hover + click) yielding high impact on all three CIA dimensions of the developer's machine - a realistic 8.7 score. There is no EPSS, no CISA KEV listing, and no known public PoC at this time, so this is not in the actively exploited tier. However, the delivery surface is unusually attractive: a malicious npm dependency authored or compromised by an attacker would silently weaponize any IDE hover, making this a credible supply-chain pivot against developers. Real-world priority is high for organizations whose developers use the Angular Language Service, even absent in-the-wild exploitation evidence.

Exploit ScenarioDerived

An attacker publishes a malicious npm package - or compromises a popular transitive dependency - containing a TypeScript or JavaScript symbol whose JSDoc comment embeds a Markdown link pointing to a command: URI (for example, a workbench.action.terminal.sendSequence command that runs a shell payload). A developer installs the dependency, opens the project in VS Code, hovers over the affected symbol to inspect it, and clicks the rendered tooltip link, at which point VS Code executes the command sequence on the developer's host with their user privileges.

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

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to 21.2.4) allows attackers to execute arbitrary commands on a developer's host when the developer hovers over and clicks a crafted JSDoc tooltip. The client trusts all rendered Markdown (isTrusted: true) while the language server fails to sanitize JSDoc content, enabling embedded command: URIs to fire from malicious source files or npm dependencies. No public exploit identified at time of analysis, but the supply-chain reach via npm packages makes this a notable developer-workstation risk.

RemediationAI

Vendor-released patch: 21.2.4 - upgrade the Angular Language Service VS Code extension (angular.ng-template) to 21.2.4 or later via the VS Code Marketplace, per advisory https://github.com/angular/angular/security/advisories/GHSA-q94j-3wj3-4xcm. As interim compensating controls before patching, disable or uninstall the Angular Language Service extension in projects sourced from untrusted repositories, open such projects in VS Code Restricted Mode (which suppresses command: URI execution from Markdown but also reduces extension functionality), and avoid hovering on symbols in untrusted source files or third-party dependencies. Audit recently added npm dependencies in Angular projects for suspicious JSDoc content as a detection measure; note that Restricted Mode and disabling the extension will both degrade Angular template editing features until the fix is applied.

Affected VersionsENISA

angular < 21.2.4
Angular.ng-template < 21.2.4

Affected Packages

euvd angular fix: 21.2.4
euvd angular_ng_template fix: 21.2.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages 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 integration between the Angular Language Server (LSP backend) and its VS Code client. In client/src/client.ts, the Markdown renderer for hover tooltips is instantiated with isTrusted: true, which authorizes VS Code to render and activate command: URIs embedded in Markdown links. In server/src/handlers/hover.ts and server/src/text_render.ts, the server emits hover content built from JSDoc comments without escaping brackets, raw links, or control characters. This is a classic CWE-79 cross-site-scripting class flaw adapted to the LSP/Electron context: untrusted code-derived content is rendered in a privileged UI surface, where command: links execute against the VS Code command palette with the user's privileges. Affected CPEs are angular:angular and angular:angular.ng-template (the Angular Language Service ships under the Angular umbrella).

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

Payload is delivered over the network via source/npm (AV:N, AC:L, PR:N), but requires the developer to hover and click (UI:R); successful execution fully compromises the host (C/I/A:H, unchanged scope).

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

Executive ViewAI

Why It Matters

The Angular Language Service VS Code extension (versions before 21.2.4) contains a code execution vulnerability triggered by malicious content in npm packages or source files, enabling attackers to compromise developer workstations and establish supply-chain footholds into organizational software development.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: Disable or uninstall Angular Language Service extension versions prior to 21.2.4; implement npm package source restrictions and mandatory code review of transitive dependencies; isolate development environments from production networks; monitor for suspicious JSDoc content in source files and dependencies; deploy alternative language service implementations for critical development teams.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
Popular VS Code dev tool among Angular developers worldwide.
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.3%
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-49241 HIGH
8.7 Jun 22

Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently

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