VYPR
Medium severityNVD Advisory· Published Oct 14, 2025· Updated Apr 15, 2026

CVE-2025-36730

CVE-2025-36730

Description

A prompt injection vulnerability exists in Windsurft version 1.10.7 in Write mode using SWE-1 model.

It is possible to create a file name that will be appended to the user prompt causing Windsurf to follow its instructions.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A prompt injection vulnerability in Windsurf 1.10.7 allows an attacker to inject instructions via a crafted filename, potentially leading to data exfiltration.

Vulnerability

Overview

A prompt injection vulnerability exists in Windsurf version 1.10.7 when using Write mode with the SWE-1 model. The root cause is that the AI assistant appends the filename of opened files to the user prompt without sanitization. An attacker can create a file with a name containing embedded instructions, which the AI then interprets and executes as part of its task [1].

Exploitation

To exploit this, an attacker must be able to create files in a directory that the victim opens in Windsurf. When the victim opens the folder and uses Write mode, the AI reads the filename and follows the injected instructions. The Workspace Trust feature in VS Code can prevent AI features if the user explicitly chooses not to trust the authors, but this effectively disables the AI coding assistant, making it an impractical mitigation [1].

Impact

The injected instructions can direct the AI to perform actions such as reading a webhook URL and exfiltrating sensitive system information (username, OS, current directory, IP address, etc.) to an attacker-controlled server. This could lead to data leakage and further compromise if the attacker gains access to the victim's environment [1].

Mitigation

As of the publication date, no patch has been released for Windsurf 1.10.7. The vendor suggests using Workspace Trust, but this disables the AI assistant entirely. Users should avoid opening untrusted directories in Windsurf until a fix is available [1].

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.