Read the docs
TI-2026-36937 Aliases CVE-2026-50178

Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Language Service Extension

Priority MEDIUM 40CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting, Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79 and CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00502 43rd percentileScored 2026-11-07
Fix Fixed angular (angular): 21.2.4Angular.ng-template (angular): 21.2.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
angularangularbefore 21.2.421.2.4Patch availableCNA
angularAngular.ng-templatebefore 21.2.421.2.4Patch availableCNA
  • angular Vendorangular Affected before 21.2.4 Fixed in 21.2.4 Patch available CNA
  • Angular.ng-template Vendorangular Affected before 21.2.4 Fixed in 21.2.4 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:angular:angular_language_service:*:*:*:*:*:visual_studio_code:*:*before 21.2.4Vulnerableangular
  • cpe:2.3:a:angular:angular_language_service:*:*:*:*:*:visual_studio_code:*:* Versions before 21.2.4 Vulnerable ·angular

Remediation

  • Fix · CNA angular (angular) Fixed in 21.2.4
  • Fix · CNA Angular.ng-template (angular) Fixed in 21.2.4

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-50178

References

  • TI-2026-36439 Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Code Extension CVSS 4.0HIGH 8.7

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences