/

CVE-2026-69154

Severity:

HIGH RISK

(7.8)

Configuration Control (CWE-15) in Coder VS Code Extension

CVE-2026-69154

Received

Vulnerability type

Category:

Improper Control of Configuration Settings

CWE:

CWE-15, CWE-78

Impact:

Arbitrary Command Execution and Security Configuration Manipulation

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The Coder VS Code extension allows a repository to supply workspace settings that override security-sensitive extension settings. When a victim with the extension installed opens a malicious workspace, attacker-controlled commands may run with the victim's privileges, and other settings may alter CLI, SSH, TLS, or credential behavior.

Affected context

The issue occurs in the Coder VS Code extension when workspace or folder settings from a repository can override settings that should be controlled by the extension or user. It can affect untrusted workspaces if the extension consumes those settings despite declaring support for untrusted-workspace operation. Sensitive settings include command hooks, CLI paths and arguments, download sources, TLS material and verification, and identity or credential-storage behavior.

Exploit preconditions

  • Attack surface: VS Code workspace or folder settings processed by the Coder extension
  • Required access: The attacker must be able to provide a repository containing attacker-controlled .vscode/settings.json; the victim must have the extension installed
  • Trigger point: The victim opens the malicious workspace and the extension activates or uses the affected settings
  • Why exploitation is possible: Workspace-controlled values can override security-sensitive settings, including values later used as shell commands

Why this happens

The extension allows lower-trust workspace and folder configuration to control settings with security-sensitive effects. This maps primarily to CWE-15: External Control of System or Configuration Setting. When attacker-controlled settings are passed to a shell command, the behavior can also result in CWE-78: Improper Neutralization of Special Elements used in an OS Command. Supporting untrusted workspaces without isolating or rejecting these settings leaves the trust boundary unenforced.

Potential impact

  • Attacker-controlled commands may execute with the victim user's privileges
  • The Coder CLI or its download source could be redirected or supplied with unintended flags
  • SSH behavior, TLS verification, or TLS material could be altered
  • Identity or credential-storage behavior could be changed, potentially exposing or misusing credentials

General mitigation guidance

Mitigations generally focus on preventing workspace-controlled input from governing privileged extension behavior.

Common defensive patterns include:

  • Keep command execution, executable paths, download sources, and credential settings at trusted user or administrator scope
  • Reject or ignore workspace-level overrides for security-sensitive settings
  • Treat repository configuration as untrusted, including in untrusted-workspace mode
  • Use fixed, validated command arguments and avoid shell interpretation where possible
  • Apply least privilege to extension-launched processes and limit access to credentials
  • Use secure defaults for TLS verification and identity handling

How teams detect issues like this

High-level checks can look for:

  • Extension code that reads workspace or folder settings for command, executable, download, TLS, SSH, or credential controls
  • Shell execution paths that consume configuration values without strict validation or safe argument handling
  • Policy or static-analysis rules that flag security-sensitive settings as workspace-overridable
  • Tests verifying that untrusted workspaces cannot change privileged extension behavior

Automated code review tools may help identify configuration trust-boundary issues and command execution sinks.

Sources

SourceLink
github.comgithub.com/coder/vscode-coder/commit/9ee5140aec532b347b72834767ea4f99c01666a0
github.comgithub.com/coder/vscode-coder/pull/965
github.comgithub.com/coder/vscode-coder/releases/tag/v1.14.6
github.comgithub.com/coder/vscode-coder/security/advisories/GHSA-9q2g-22gh-hmgg

Frequently asked

questions

The attacker can distribute a malicious repository, but exploitation requires a victim with the extension installed to open that workspace and trigger extension behavior.

Not necessarily. The key prerequisite is that the victim opens a repository containing attacker-controlled workspace settings; resulting commands run with the victim user's privileges.

Do not allow workspace-controlled settings to override security-sensitive extension behavior. Keep such settings at a trusted scope and avoid shell interpretation of configurable values.

Treat repository settings as untrusted, enforce trust boundaries for untrusted workspaces, validate configuration against strict policies, and test that workspace settings cannot redirect commands, binaries, TLS, or credential behavior.

Find out what's already
exploitable in your codebase.