Skip to content

Sensitive file editing guard bypass

Moderate
connor4312 published GHSA-pv7g-9595-vx6g Nov 11, 2025

Package

Github.copilot-chat (Visual Studio Code Marketplace)

Affected versions

<0.32.5

Patched versions

0.32.0

Description

VS Code - Sensitive file editing guard bypass

A remote code execution vulnerability exists in VS Code Copilot Chat 0.32.4 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.5. The fix mitigates this attack by validating paths provided to edit tools.

Workarounds

Avoid including untrusted input or context in your agent loop.

References

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

CVE ID

CVE-2025-62449

Weaknesses

No CWEs