{"schemaVersion":3,"id":"CVE-2026-49241","aliases":["UBUNTU-CVE-2026-49241"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-06-22T15:16:14.945Z","modified":"2026-06-23T13:42:26.808Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00242,"percentile":0.14444,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00242},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00242,"percentile":0.14444}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00242,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00242,"percentile":0.14444}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-427","name":"Uncontrolled Search Path Element","description":"The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/427.html"},{"id":"CWE-494","name":"Download of Code Without Integrity Check","description":"The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/494.html"}],"affected":[{"vendor":"angular","product":"angular","name":"angular","label":"angular","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.2.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"angular","label":"Angular","category":"framework"}},"hubHref":"/vendor/angular/angular"},{"vendor":"angular","product":"angular_language_service","name":"angular language service","label":"angular_language_service","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.2.4","eol":null,"hubHref":"/vendor/angular/angular_language_service"},{"vendor":"ubuntu","product":"angular.js","name":"angular.js","label":"angular.js","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/angular.js","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-ccq4-xmxr-8hcq","label":"github.com/angular/angular/security/advisories/GHSA-ccq4-xmxr-8hcq","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/angular/angular/pull/68857","label":"github.com/angular/angular/pull/68857","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking"]},{"url":"https://github.com/angular/angular/pull/68886","label":"github.com/angular/angular/pull/68886","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking"]},{"url":"https://ubuntu.com/security/CVE-2026-49241","label":"ubuntu.com/security/CVE-2026-49241","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-49241","label":"www.cve.org/CVERecord?id=CVE-2026-49241","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-06-22T15:16:14.945Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-23T13:42:26.808Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:30:27.629Z","stale":false,"partial":false}}