Skip to main content
Mallory
HighVulnerability

CVE-2026-49241: Remote Code Execution in Angular Language Service VS Code Extension via Workspace-Specified TypeScript SDK Path

Published Jun 22, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.7High · v4
EPSS0.24%16th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Angular
IdentifiersCVE-2026-49241CWE-829

CVE-2026-49241 is a high-severity remote code execution vulnerability in the Angular Language Service VS Code Extension prior to version 21.2.4. The extension reads custom TypeScript SDK path settings from workspace configuration, including typescript.tsdk and js/ts.tsdk.path, without validating VS Code Workspace Trust state or obtaining explicit user consent. The client component forwards the workspace-supplied path to the background Node.js language server using the --tsdk argument. During initialization, the language server resolves and loads tsserverlibrary.js relative to that attacker-controlled directory using Node.js module loading. A malicious repository can therefore supply a crafted workspace configuration together with a rogue tsserverlibrary.js in a referenced local folder, causing arbitrary JavaScript execution when the repository is opened in VS Code and the extension initializes.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in arbitrary code execution in the context of the developer's local VS Code environment through the Angular Language Service background process. This can enable compromise of the workstation or development session, including execution of attacker-controlled commands, access to local source code and developer data available to the process, installation of additional tooling or malware, and follow-on actions using the privileges of the affected user.

Mitigation

If you can’t patch tonight, do this now.

Enable and enforce VS Code Workspace Trust so untrusted repositories do not automatically influence extension behavior. Avoid opening untrusted repositories directly in a fully trusted workspace, and review workspace configuration files before use, especially settings that alter SDK or toolchain paths. Restrict use of custom TypeScript SDK paths in development environments where possible.

Remediation

Patch, then assume compromise.

Upgrade the Angular Language Service VS Code Extension to version 21.2.4 or later, which fixes the unsafe handling of workspace-specified TypeScript SDK paths. Ensure all affected developer environments are updated to the patched extension version.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AngularAngular Language Serviceapplication
FAQ

Frequently asked questions

Is CVE-2026-49241 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-49241 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-49241?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-49241.
Is there a patch for CVE-2026-49241?
Upgrade the Angular Language Service VS Code Extension to version 21.2.4 or later, which fixes the unsafe handling of workspace-specified TypeScript SDK paths. Ensure all affected developer environments are updated to the patched extension version.
What products are affected by CVE-2026-49241?
Angular Language Service.
How severe is CVE-2026-49241?
CVE-2026-49241 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.24% (16th percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.