CVE-2026-50178Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular…
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | angular.js | Fix pending | UBUNTU-CVE-2026-50178 | |
| Ubuntu 26.04 | angular.js | Under investigation | UBUNTU-CVE-2026-50178 | |
| Ubuntu 25.10 | angular.js | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-50178 | |
| Ubuntu 24.04 | angular.js | Under investigation | UBUNTU-CVE-2026-50178 | |
| Ubuntu 22.04 | angular.js | Under investigation | UBUNTU-CVE-2026-50178 | |
| Ubuntu 20.04 | angular.js | Fix pending | UBUNTU-CVE-2026-50178 | |
| Ubuntu 18.04 | angular.js | Fix pending | UBUNTU-CVE-2026-50178 | |
| Ubuntu 16.04 | angular.js | Fix pending | UBUNTU-CVE-2026-50178 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- angular: affected: < 21.2.4
- Angular.ng-template: affected: < 21.2.4
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.