CVE-2026-50178 Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Ubuntu
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.
Upgrade path
7 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/angular.js(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| angular language service | < 21.2.4 | 21.2.4 | Fixed |
| angular | = < 21.2.4 | No fix listed | Versions listed |
| Angular.ng-template | = < 21.2.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| angular | = < 21.2.4 | No fix listed |
| Angular.ng-template | = < 21.2.4 | No fix listed |
| ubuntu/angular.js(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.10) | All versions | No fix listed |
| angular language service | < 21.2.4 | 21.2.4 |
References
- https://github.com/angular/angular/security/advisories/GHSA-q94j-3wj3-4xcm vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org