CVE-2026-49241
Last modified
CVE-2026-49241 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. The Angular Language Service VS Code Extension provides a rich editing experience for Angular templates. Prior to 21.2.4, the client-side Angular Language Service VS Code extension reads the custom TypeScript SDK paths typescript.tsdk and js/ts.tsdk.path directly from workspace configurations (.vscode/settings.json) without verifying VS Code Workspace Trust state or asking for user consent (located in client/src/client.ts). EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
The Angular Language Service VS Code Extension provides a rich editing experience for Angular templates. Prior to 21.2.4, the client-side Angular Language Service VS Code extension reads the custom TypeScript SDK paths typescript.tsdk and js/ts.tsdk.path directly from workspace configurations (.vscode/settings.json) without verifying VS Code Workspace Trust state or asking for user consent (located in client/src/client.ts). The client-side extension then passes the parsed settings path as a command-line argument (--tsdk) to the background Node.js language server process. During server initialization, the background language server resolves and dynamically imports (via standard Node.js require()) the module library tsserverlibrary.js relative to the workspace-specified custom directory path. An attacker can exploit this behavior by committing a repository containing a local malicious tsserverlibrary.js script inside a custom folder, and a crafted .vscode/settings.json file pointing to that folder. When a developer opens the repository folder in VS Code, the extension automatically attempts to initialize and load the server, which dynamically resolves, loads, and executes the malicious script silently in the background. This vulnerability is fixed in 21.2.4.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Angular | Angular Language Service | < 21.2.4 |
References
- https://github.com/angular/angular/pull/68857Issue Tracking
- https://github.com/angular/angular/pull/68886Issue Tracking
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-49241?
How severe is CVE-2026-49241?
How do I fix CVE-2026-49241?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-49233Routinator does not properly check the module component of r…7.5
- CVE-2026-49234When sending a specifically crafted non-UTF-8 string as sele…7.5
- CVE-2026-49235When Routinator encounters a file via RRDP using a specifica…7.5
- CVE-2026-49237An issue was discovered in Canonical Multipass for macOS bef…7.8
- CVE-2026-49238An issue was discovered in Canonical Multipass before versio…8.4
- CVE-2026-4924Improper authentication in the two-factor authentication (2…8.2
- CVE-2026-49246Jellyfin is an open source self hosted media server. Prior t…1.7
- CVE-2026-49247Jellyfin is an open source self hosted media server. From 10…8.8
- CVE-2026-49248OneDev is a Git server with CI/CD, kanban, and packages. In …8.3
- CVE-2026-4925Improper access control in the users MFA feature in Devoluti…5
- CVE-2026-49252deepstream is a server that allows clients and backend servi…9.9
- CVE-2026-49256Discourse is an open-source discussion platform. Prior to 20…7.5
Are you affected by CVE-2026-49241?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
