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

Published Jun 22, 2026
·
Updated

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/textrender.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.

Affected Software

2 affected components
angular Angular Language Service VS Code Extension<21.2.4
angular Angular Language Service Visual Studio Code<21.2.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Angular Language Service VS Code Extension to a version that resolves this vulnerability.

    Fixed in 21.2.4
  2. Configuration

    In client/src/client.ts, configure the tooltip Markdown renderer to use isTrusted: false instead of isTrusted: true to prevent active command link content from being trusted/executed.

    VS Code Angular Language Service Extension (client-side tooltip renderer) isTrusted = false

Event History

Jun 22, 2026
CVE Published
via MITRE·03:20 PM
Data Sourced
via MITRE·03:20 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-50178?

CVE-2026-50178 has a high severity score of 8.7.

2

How do I fix CVE-2026-50178?

To mitigate CVE-2026-50178, update the Angular Language Service VS Code extension to the latest version.

3

What type of vulnerability is CVE-2026-50178?

CVE-2026-50178 is a remote code execution vulnerability related to command injection in the Angular Language Service.

4

Which software is affected by CVE-2026-50178?

CVE-2026-50178 affects the Angular Language Service VS Code Extension.

5

Can CVE-2026-50178 lead to serious security issues?

Yes, CVE-2026-50178 can potentially allow for remote code execution, leading to significant security risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203