Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.7%top 52%

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

CVE-2026-40376 is a high-severity vulnerability in Microsoft Visual Studio Code caused by improper input validation. This flaw allows an unauthorized attacker to elevate privileges over a network. An official fix is available to address this issue. No known exploits are reported in the wild at this time.

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: 07/29/2026, 21:03:58 UTC

Technical Analysis

This vulnerability (CVE-2026-40376) in Microsoft Visual Studio Code involves improper input validation (CWE-20) that could be exploited by an unauthorized attacker to elevate privileges remotely. The CVSS 3.1 base score is 7.5, indicating high severity, with network attack vector, high attack complexity, no privileges required, and user interaction required. The vulnerability affects version 1.0.0 of Visual Studio Code. Microsoft has released an official fix to remediate this issue.

Potential Impact

Successful exploitation allows an attacker to elevate privileges over a network, potentially leading to full compromise of the affected system. The vulnerability impacts confidentiality, integrity, and availability with high severity.

Mitigation Recommendations

An official fix is available from Microsoft for this vulnerability. Users and administrators should apply the vendor-provided patch to affected versions of Visual Studio Code promptly to mitigate the risk. No additional mitigations are specified 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
Additional Cves
[]
Cvss Version
null
Remediation Level
official-fix

Threat ID: 6a29d5c30e53e738839c2812

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

Last enriched: 07/29/2026, 21:03:58 UTC

Last updated: 07/31/2026, 19:33:05 UTC

Views: 360

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