Skip to main content

Angular.js: The Angular Language Service VS Code Extension provides a rich editing experience for Angular templates. (CVE-2026-49241)

0
Medium
Published: 06/22/2026 (06/22/2026, 16:16:00 UTC)
Source: GCVE Database
Product: angular.js

Description

The Angular Language Service VS Code Extension prior to version 21.2.4 reads custom TypeScript SDK paths from workspace configurations without verifying VS Code Workspace Trust or user consent. This allows a malicious repository to cause the extension to load and execute a malicious tsserverlibrary.js script silently when the repository is opened in VS Code. The vulnerability is fixed in version 21.2.4.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=esm-infra/xenial
Affected versions
=1.2.28-1ubuntu2=1.2.28-1ubuntu2+esm1
Ubuntu:Pro:18.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=esm-infra/bionic
Affected versions
=1.5.10-1=1.5.10-1ubuntu0.1~esm1
Ubuntu:Pro:20.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=esm-apps/focal
Affected versions
=1.5.10-1=1.7.9-1=1.7.9-1ubuntu0.1~esm1
Ubuntu:22.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=jammy
Affected versions
=1.8.2-2=1.8.2-2ubuntu0.1
Ubuntu:24.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=noble
Affected versions
=1.8.3-1=1.8.3-1ubuntu0.24.04.1
Ubuntu:25.10more threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=questing
Affected versions
=1.8.3-1=1.8.3-3
Ubuntu:26.10more threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=stonking
Affected versions
=1.8.3-3
Ubuntu:26.04:LTSmore threats →ghsa
angular.js
pkg:deb/ubuntu/angular.js?arch=source&distro=resolute
Affected versions
=1.8.3-3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 01:04:24 UTC

Technical Analysis

The Angular Language Service VS Code Extension (before 21.2.4) reads the custom TypeScript SDK paths (typescript.tsdk and js/ts.tsdk.path) directly from the workspace's .vscode/settings.json without verifying the VS Code Workspace Trust state or obtaining user consent. It then passes the parsed path as a command-line argument to the background Node.js language server, which dynamically imports the tsserverlibrary.js module relative to the specified custom directory. An attacker can exploit this by committing a malicious tsserverlibrary.js script and a crafted settings.json pointing to it. When a developer opens the repository in VS Code, the extension loads and executes the malicious script silently. This issue is resolved in version 21.2.4.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary code silently in the background when a developer opens a malicious repository in VS Code, potentially compromising the developer's environment with high confidentiality, integrity, and availability impact.

Mitigation Recommendations

Upgrade the Angular Language Service VS Code Extension to version 21.2.4 or later, where this vulnerability is fixed. Until then, avoid opening untrusted repositories that contain custom TypeScript SDK paths in .vscode/settings.json. There is no indication that the vendor provides other mitigations or temporary fixes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-49241
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f61a2cdf04f656664189

Added to database: 10/17/2026, 22:26:34 UTC

Last enriched: 10/18/2026, 01:04:24 UTC

Last updated: 10/18/2026, 01:04:24 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses