CVE-2026-50178
published high CVSS 4.0 · 8.7Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| angular | angular | < 21.2.4 (affected) | GitHub_M · cna |
| angular | Angular.ng-template | < 21.2.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
1Provider assertions
2GitHub_M · cna
Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a93b72bd1262a767851cb7c7e1bb5dd9c4a50a469905549600b991cc346b0210
- Ingested
- 23 Sep 2026, 09:18:57 UTC
- Source record
- Official CVE record