Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityextension-plugin-hijackwidely-deployed-product-advisorypayload-delivery-evasion

Angular VS Code extension flaw enabled zero-click code execution from malicious workspaces

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

Angular VS Code extension flaw enabled zero-click code execution from malicious workspaces

Angular disclosed a high-severity arbitrary code execution flaw in the VS Code Angular Language Service extension (Angular.ng-template) that allowed a malicious repository to run code on a developer’s machine when the folder was opened in VS Code. The issue, tracked as CVE-2026-49241, affected versions prior to 21.2.4 and stemmed from the extension reading a workspace-configured typescript.tsdk path from .vscode/settings.json without honoring VS Code Workspace Trust or requiring user approval. That path was then passed to the background Node.js language server, which loaded tsserverlibrary.js from an attacker-controlled location, creating a zero-click path to host compromise and effectively bypassing VS Code Restricted Mode.

Angular fixed the vulnerability in version 21.2.4 through two hardening changes: blocking workspace-level TypeScript SDK loading in untrusted workspaces and requiring explicit confirmation before loading a workspace-level SDK in trusted ones, with approval stored locally in secure workspace state. A second change disables the language server and related command registration until workspace trust is granted, preventing silent execution in restricted environments. The vulnerability was reported by CodeMender from Google DeepMind and is listed with a CVSS 4.0 score of 8.7 as remotely exploitable.

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.

4 events · May 21, 2026 – Jun 22, 2026
  1. Jun 22, 20265mo ago

    CVE-2026-49241 entry is published

    The vulnerability was published as CVE-2026-49241 with a high-severity remote code execution rating and a listed fix in version 21.2.4. The CVE entry describes the same unsafe handling of workspace-configured TypeScript SDK paths in the Angular Language Service VS Code extension.

    CVE-2026-49241 - Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Code Extension
  2. May 23, 20266mo ago

    Angular publishes advisory for zero-click RCE in language service

    Angular disclosed a zero-click arbitrary code execution vulnerability affecting the Angular.ng-template VS Code extension before version 21.2.4. The advisory said a malicious repository could use a crafted .vscode/settings.json and rogue tsserverlibrary.js to trigger background code execution when opened, and credited CodeMender from Google DeepMind with reporting the issue.

    Insecure Workspace Configuration and Dynamic Library Loading in VS Code Angular Language Service Extension · Advisory · angular/angular · GitHub
  3. May 22, 20266mo ago

    Angular merges two security fixes for the VS Code extension

    On May 22, 2026, Angular merged pull requests #68857 and #68886 into the main branch. The changes added confirmation for workspace TypeScript SDK loading and disabled the language server and related commands in untrusted workspaces until trust is granted.

    fix(vscode-extension): prompt for confirmation before loading workspa… by atscott · Pull Request #68857 · angular/angular · GitHub
  4. May 21, 20266mo ago

    Angular opens PR to confirm workspace TypeScript SDK loading

    Angular opened pull request #68857 to harden the VS Code Angular Language Service extension by requiring explicit confirmation before loading a workspace-level TypeScript SDK path and by blocking such paths in untrusted workspaces.

    fix(vscode-extension): prompt for confirmation before loading workspa… by atscott · Pull Request #68857 · 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.