Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPublish malicious npm package with crafted JSDoc
-
DeliveryDeveloper installs dependency in Angular project
-
ExploitDeveloper hovers over poisoned symbol
-
InstallLanguage server renders unsanitized tooltip
-
C2Developer clicks embedded command link
-
ExecuteVS Code executes command: URI on host
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
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. 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
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.
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
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
Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently
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-38264
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB