Skip to main content
EPSS 0.7%top 50%

CVE-2026-40376: CWE-20: Improper Input Validation in Microsoft Visual Studio Code

0
High
Published: 06/09/2026 (06/09/2026, 17:05:21 UTC)
Source: GCVE Database
Vendor/Project: Microsoft
Product: Visual Studio Code

Description

Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.

CVSS v3.1

Score 7.5high

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

Affected software

GitHub Actionsmore threats →ai
microsoft/vscode
pkg:github/microsoft/vscode
Affected versions
<1.123.2

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: 08/14/2026, 12:53:59 UTC

Technical Analysis

CVE-2026-40376 is a vulnerability in Microsoft Visual Studio Code identified as improper input validation (CWE-20). This security flaw enables an attacker without privileges to elevate their privileges remotely over a network. The vulnerability has a CVSS 3.1 base score of 7.5, indicating high severity with high impact on confidentiality, integrity, and availability. Microsoft has released an official fix to remediate this issue. There are no reports of active exploitation in the wild.

Potential Impact

Successful exploitation of this vulnerability could allow an unauthorized attacker to gain elevated privileges on the affected system, potentially leading to full compromise of the Visual Studio Code environment and associated resources. The impact includes high confidentiality, integrity, and availability loss as indicated by the CVSS score.

Mitigation Recommendations

An official fix is available from Microsoft to address this vulnerability. Users and administrators should apply the patch promptly to mitigate the risk. Since this is not a cloud service, remediation requires updating the affected Visual Studio Code installations. No additional mitigation steps are indicated by the vendor advisory.

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

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Microsoft Security Response Center
Advisory Id
msrc_CVE-2026-40376
Cve Count
1
Remediation Level
official-fix

Threat ID: 6a29d5c30e53e738839c2812

Added to database: 06/10/2026, 21:23:15 UTC

Last enriched: 08/14/2026, 12:53:59 UTC

Last updated: 09/15/2026, 01:42:57 UTC

Views: 493

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