CVEfocus › CVE database › CVE-2026-50178

CVE-2026-50178Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular…

CVSS 8.7 HighEPSS 0.5% (higher than 36% of CVEs)Published 2026-06-22Updated 2026-06-22Assigner: GitHub_M

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.

CWE-79CWE-94

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

4Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10angular.jsFix pendingUBUNTU-CVE-2026-50178
Ubuntu 26.04angular.jsUnder investigationUBUNTU-CVE-2026-50178
Ubuntu 25.10angular.jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-50178
Ubuntu 24.04angular.jsUnder investigationUBUNTU-CVE-2026-50178
Ubuntu 22.04angular.jsUnder investigationUBUNTU-CVE-2026-50178
Ubuntu 20.04angular.jsFix pendingUBUNTU-CVE-2026-50178
Ubuntu 18.04angular.jsFix pendingUBUNTU-CVE-2026-50178
Ubuntu 16.04angular.jsFix pendingUBUNTU-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.

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.