Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryopen-source-dependency-vulnerabilitypayload-delivery-evasion

Angular VS Code Language Service Flaw Enables RCE via Malicious JSDoc Hover Links

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Jun 22, 2026

Angular VS Code Language Service Flaw Enables RCE via Malicious JSDoc Hover Links

A high-severity vulnerability in the Angular Language Service extension for Visual Studio Code, tracked as CVE-2026-50178, allows remote code execution when malicious JSDoc content is rendered inside hover tooltips. The flaw stems from the extension treating tooltip Markdown as trusted while the Angular Language Server forwards insufficiently sanitized JSDoc-derived content, including brackets, raw links, and control characters. An attacker can embed a crafted command: URI in a project file or a third-party npm dependency so that, when a developer hovers over the affected symbol and clicks the link, VS Code executes commands on the developer’s host machine.

The issue affects Angular.ng-template versions prior to 21.2.4 and can bypass normal Restricted Mode and Workspace Trust protections in VS Code. GitHub’s advisory says the bug was discovered and reported by CodeMender from Google DeepMind, and the published CVSS 4.0 base score is 8.7. Users are advised to upgrade the extension to version 21.2.4 or later to remediate the vulnerability.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · May 28, 2026 – Jun 22, 2026
  1. Jun 22, 20265mo ago

    CVE-2026-50178 entry published with high severity rating

    A CVE entry for the Angular Language Service extension flaw was published as CVE-2026-50178 with a CVSS 4.0 base score of 8.7, rated High. The entry describes the same command-injection path via trusted Markdown hover rendering and notes the issue is fixed in version 21.2.4.

    CVE-2026-50178 - Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension
  2. May 28, 20266mo ago

    Angular fixes flaw in Angular.ng-template version 21.2.4

    The advisory states the issue affects Angular.ng-template versions before 21.2.4 and advises users to upgrade to version 21.2.4 or later. This identifies version 21.2.4 as the fix for the vulnerability.

    Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension · Advisory · angular/angular · GitHub
  3. May 28, 20266mo ago

    Angular discloses VS Code extension RCE vulnerability

    Angular published a security advisory for a remote code execution flaw in the VS Code Angular Language Service extension caused by unsanitized JSDoc hover content being rendered as trusted Markdown. The advisory states that a crafted command URI in project files or third-party npm dependencies could execute code if a developer clicked the link in a hover tooltip.

    Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension · Advisory · angular/angular · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.