Skip to main content
Vulnerability Database/CVE-2026-89116

CVE-2026-89116: VS Code Workspace RCE Vulnerability

CVE-2026-89116 is a remote code execution flaw in VS Code workspace configurations that allows attackers to execute arbitrary OS commands through malicious settings. This post explains its impact, technical details, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-89116 Overview

CVE-2026-89116 is an OS command injection vulnerability [CWE-78] in the SAP app-studio-toolkit VS Code extension. The affected code invokes child_process.execSync with a shell string during generator installation and uninstallation. An attacker can inject arbitrary commands by manipulating the ApplicationWizard.installationLocation VS Code workspace configuration value. Because the setting is passed to the shell without sanitization, a malicious repository can ship a crafted settings.json that executes commands with the developer's privileges when the project is opened and a generator install is triggered.

Critical Impact

A malicious workspace repository can execute arbitrary operating system commands on a developer's machine with their local privileges when the toolkit triggers a generator install or uninstall.

Affected Products

  • SAP app-studio-toolkit (VS Code extension)
  • Developer environments using the Application Wizard generator installation flow
  • SAP Business Application Studio tooling that depends on the affected toolkit

Discovery Timeline

  • 2026-10-13 - CVE-2026-89116 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-89116

Vulnerability Analysis

The toolkit's generator install and uninstall routines build a shell command that incorporates the ApplicationWizard.installationLocation value from VS Code workspace settings. This value is concatenated into a shell string and passed to child_process.execSync, which spawns a shell to interpret the command. Any shell metacharacters inside the configuration value are evaluated by the shell rather than treated as path data.

Exploitation requires a developer to open a malicious repository and trigger the generator installation flow. The attack delivers code execution in the developer's user context, enabling theft of source code, credentials in ~/.aws, ~/.ssh, or ~/.npmrc, and lateral movement into SAP backend systems the developer can reach. Classified as [CWE-78] OS Command Injection, this follows the established pattern of IDE extensions trusting repository-provided configuration.

Root Cause

The root cause is passing untrusted input to a shell interpreter. VS Code workspace settings in .vscode/settings.json are controlled by whoever authored the repository, not by the developer. The toolkit treats the installationLocation string as a trusted path and interpolates it into a shell command. There is no allowlist, quoting, or use of the argument-array form of child_process that would prevent shell metacharacter interpretation.

Attack Vector

An attacker publishes a repository containing a .vscode/settings.json that sets ApplicationWizard.installationLocation to a value such as a legitimate path followed by shell separators and a payload command. When the developer clones the repository, opens it in VS Code with the toolkit installed, and uses the Application Wizard to install or uninstall a generator, the injected command runs. See the GitHub Security Advisory for vendor-provided technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-89116

Indicators of Compromise

  • Unexpected child processes spawned by Visual Studio Code (code / Code.exe) or Node.js processes associated with the app-studio-toolkit extension.
  • .vscode/settings.json files containing shell metacharacters (;, &&, |, backticks, $()) inside the ApplicationWizard.installationLocation value.
  • Outbound network connections from developer workstations to unfamiliar hosts shortly after opening a new repository.

Detection Strategies

  • Scan repositories and developer workstations for .vscode/settings.json entries that set ApplicationWizard.installationLocation to non-path values.
  • Alert on execSync or shell invocations initiated by the VS Code extension host whose command line includes concatenated workspace configuration strings.
  • Hunt for process ancestry where VS Code spawns /bin/sh, bash, cmd.exe, or powershell.exe immediately after a workspace is opened.

Monitoring Recommendations

  • Enable endpoint process telemetry on developer machines and retain parent-child relationships for IDE processes.
  • Monitor developer accounts for anomalous access to credential stores and SSH key material.
  • Track installation events for the app-studio-toolkit extension and correlate versions against the patched release.

How to Mitigate CVE-2026-89116

Immediate Actions Required

  • Update the SAP app-studio-toolkit extension to the fixed version listed in the GitHub Security Advisory.
  • Audit existing developer workstations for malicious .vscode/settings.json files in cloned repositories.
  • Rotate credentials accessible from developer machines that opened untrusted repositories with the vulnerable extension.

Patch Information

SAP addressed the issue as part of SAP Security Patch Day. Refer to the SAP Security Patch Day portal and the GitHub Security Advisory for the fixed version and remediation details.

Workarounds

  • Disable or uninstall the app-studio-toolkit extension until the patched version is deployed.
  • Use VS Code Workspace Trust and decline to trust unfamiliar repositories before opening them.
  • Review and strip .vscode/settings.json from untrusted repositories prior to opening or running any generator operations.
bash
# Review a repository for the vulnerable configuration key before opening
grep -R "ApplicationWizard.installationLocation" .vscode/ || echo "not present"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.