CVE-2026-49241: Remote Code Execution in Angular Language Service VS Code Extension via Workspace-Specified TypeScript SDK Path
- Vendor
- Angular
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.
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
References
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.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.