High severity · published Jun 22, 2026
CVE-2026-50178
Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension
8.8
CVSS
0.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 43% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AN
Angular.ng-template · angular
< 21.2.4 · source: vendor
AN
angular · angular
< 21.2.4 · source: vendor
AL
Angular Language Service · Angular
before 21.2.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-50178
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-50178
Vendor Advisory
https://github.com/angular/angular/security/advisories/GHSA-q94j-3wj3-4xcm
More from angular
9.1
CVE-2026-88056
Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR
8.8
CVE-2026-49241
Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Code Extension
8.7
CVE-2026-101895
Angular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPE
8.2
CVE-2026-101896
Angular: Denial of Service via Numeric URL Matrix Parameters in Server-Side Rendering (SSR)
8.2
CVE-2026-50168
Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Bypass
