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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
CVE-2026-49241 - Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Code Extension
cvefeed.io
Open sourceInsecure Workspace Configuration and Dynamic Library Loading in VS Code Angular Language Service Extension · Advisory · angular/angular · GitHub
github.com
Open sourcefix(vscode-extension): disable language server in untrusted workspaces by atscott · Pull Request #68886 · angular/angular · GitHub
github.com
Open sourcefix(vscode-extension): prompt for confirmation before loading workspa… by atscott · Pull Request #68857 · angular/angular · GitHub
github.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


