Skip to content

Secret exfiltration vulnerability

High
kycutler published GHSA-wr9x-42j2-jvh3 Jul 14, 2026

Package

No package listed

Affected versions

< 1.128.1

Patched versions

1.128.1

Description

VS Code - Secret exfiltration vulnerability

A secret exfiltration vulnerability exists in VS Code 1.128.0 and earlier versions where, if you open a malicous workspace that contains hidden advanced copilot settings in the workspace settings your Copilot token (30m lifetime) may be sent to a malicious upstream server.

Patches

The fix is available starting with VS Code 1.128.1. The fix (f05bcd1) mitigates this attack by only respecting hidden advanced settings in a trusted workspace.

Workarounds

Use external tooling to inspect workspace settings for any malicious URLs prior to opening an untrusted workspace on versions of VS Code <=1.128.0

References

Severity

High

CVE ID

CVE-2026-47282

Weaknesses

No CWEs