# CVE-2026-50178: Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension

- Priority: **Routine**
- Reason: Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-22
- Aliases: UBUNTU-CVE-2026-50178
- Record: https://cvemate.com/vulnerability/CVE-2026-50178 · JSON: https://cvemate.com/vulnerability/CVE-2026-50178/json

## Description

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

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.275%, percentile 21.244%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- angular angular: \< 21.2.4
- angular angular\_language\_service: \< 21.2.4
- angular angular.ng-template: \< 21.2.4
- ubuntu angular.js (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/angular/angular/security/advisories/GHSA-q94j-3wj3-4xcm>
- <https://ubuntu.com/security/CVE-2026-50178>
- <https://www.cve.org/CVERecord?id=CVE-2026-50178>

---

Data as of 2026-12-05T04:23:55.585Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
