Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
extension-plugin-hijackendpoint-software-vulnerabilitywidely-deployed-product-advisorypayload-delivery-evasion

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

Updated 15h agoFirst seen Jun 22, 20264 sources

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.

Share:
Angular VS Code extension flaw enabled zero-click code execution from malicious workspaces
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

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

4 EVENTS
Jun 22, 20262d 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
May 23, 20261mo 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
May 22, 20261mo 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
May 21, 20261mo 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.

7 LINKEDOpen in app
Vulnerabilities
1 linked
Affected products
2 linked
Visual Studio CodeNodejs
Organizations
4 linked
AngularGoogleMicrosoft CorporationGitHub
The operational view lives in Mallory

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, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

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