Skip to content

Sensitive file editing guard bypass

Moderate
connor4312 published GHSA-mx7f-wrpp-c9fh Oct 14, 2025

Package

No package listed

Affected versions

<0.32.0

Patched versions

0.32.1

Description

VS Code - Remote Code Execution Vulnerability

A remote code execution vulnerability exists in VS Code Copilot Chat 0.32.0 and earlier versions where a prompt-injected agent mode chat could make edits to sensitive files such as .vscode/settings.json, bypassing the normal sensitivity check.

Patches

The fix is available starting with VS Code Copilot Chat 0.32.1. The fix (efdc31e) mitigates this attack by normalizing casing to the tool.

Workarounds

Avoid including untrusted input or context in your agent loop.

References

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs