The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-17023

CVE-2020-17023: Visual Studio Code RCE Vulnerability

CVE-2020-17023 is a remote code execution vulnerability in Microsoft Visual Studio Code triggered by malicious package.json files. Attackers can execute arbitrary code when users open crafted files. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-17023 Overview

A remote code execution vulnerability exists in Microsoft Visual Studio Code when a user is tricked into opening a malicious package.json file. An attacker who successfully exploits this vulnerability could execute arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take complete control of the affected system, including the ability to install programs, view, change, or delete data, or create new accounts with full user rights.

To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. The attacker-specified code would execute when the target opens the malicious package.json file, making this a social engineering-dependent attack vector.

Critical Impact

Successful exploitation allows arbitrary code execution with the privileges of the current user, potentially leading to full system compromise if the user has administrative rights.

Affected Products

  • Microsoft Visual Studio Code (all versions prior to the security patch)

Discovery Timeline

  • 2020-10-16 - CVE-2020-17023 published to NVD
  • 2026-02-23 - Last updated in NVD database

Technical Details for CVE-2020-17023

Vulnerability Analysis

This vulnerability represents a code injection attack targeting Visual Studio Code's JSON file parsing functionality. When VS Code processes a package.json file, improper handling of the file contents allows specially crafted data to trigger code execution. The attack requires user interaction, specifically opening a malicious file within the VS Code environment, making it a local attack vector that relies on social engineering techniques.

The impact is severe because developers frequently clone repositories from various sources and open them in VS Code without thorough inspection. The package.json file is a ubiquitous component of Node.js and npm projects, making it an ideal attack vector as it's typically one of the first files examined when reviewing a new project.

Root Cause

The root cause of this vulnerability lies in the way Visual Studio Code handles and processes JSON files, specifically package.json. The application failed to properly sanitize or validate the contents of these configuration files before processing them, allowing malicious payloads embedded within the JSON structure to execute code. Microsoft addressed this by modifying how Visual Studio Code handles JSON files to prevent arbitrary code execution during file parsing.

Attack Vector

The attack vector requires an attacker to craft a malicious repository containing a specially crafted package.json file. The attack sequence proceeds as follows:

  1. Attacker creates a malicious repository with a weaponized package.json file
  2. Attacker convinces the victim to clone the repository (via phishing, social engineering, or compromising a legitimate-looking project)
  3. Victim opens the cloned project in Visual Studio Code
  4. Upon opening or parsing the package.json file, the malicious code executes
  5. Attacker gains code execution with the privileges of the victim user

This local attack vector requires user interaction but has a low attack complexity once the victim opens the malicious file. The vulnerability does not require any prior privileges on the target system.

Detection Methods for CVE-2020-17023

Indicators of Compromise

  • Unusual child processes spawned by Visual Studio Code (code.exe or code on Linux/macOS)
  • Unexpected network connections originating from the VS Code process
  • Suspicious package.json files in recently cloned repositories containing encoded payloads or unusual JSON structures
  • Anomalous file system modifications or registry changes following VS Code file operations

Detection Strategies

  • Monitor for child process creation events where the parent process is Visual Studio Code, especially command shells or script interpreters
  • Implement endpoint detection rules to alert on VS Code spawning unexpected executables
  • Deploy file integrity monitoring on development environments to detect unauthorized changes
  • Use static analysis tools to scan package.json files in repositories before opening

Monitoring Recommendations

  • Enable detailed logging for Visual Studio Code processes in enterprise environments
  • Configure SIEM rules to correlate VS Code process activity with network connections and file modifications
  • Implement repository scanning pipelines that analyze package.json files for suspicious content before developer access
  • Monitor for signs of code execution following git clone operations

How to Mitigate CVE-2020-17023

Immediate Actions Required

  • Update Visual Studio Code to the latest version that includes the security patch
  • Avoid opening untrusted repositories or package.json files from unknown sources
  • Run Visual Studio Code with minimal required privileges (non-administrative accounts)
  • Review recently cloned repositories for suspicious package.json content
  • Enable VS Code's Trust feature for workspaces to restrict code execution in untrusted folders

Patch Information

Microsoft has released a security update that addresses this vulnerability by modifying the way Visual Studio Code handles JSON files. Users should update to the latest version of Visual Studio Code through the built-in update mechanism or by downloading the latest installer from the official Microsoft website. For detailed patch information, refer to the Microsoft Security Advisory CVE-2020-17023.

Workarounds

  • Enable VS Code Workspace Trust feature to restrict code execution in untrusted folders
  • Use virtual machines or containers when reviewing code from untrusted sources
  • Implement organizational policies requiring code review of package.json files before opening in VS Code
  • Consider using alternative text editors to inspect suspicious JSON files before opening projects in VS Code

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Visual Studio Code

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability18.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Advisory CVE-2020-17023
  • Related CVEs
  • CVE-2025-55319: Visual Studio Code RCE Vulnerability

  • CVE-2020-17148: Visual Studio Code RCE Vulnerability

  • CVE-2022-30129: Visual Studio Code RCE Vulnerability

  • CVE-2023-36742: Visual Studio Code RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English