CVE-2025-36730 Windsurf Prompt Injection via Filename
Attackers can inject malicious instructions via filenames to manipulate the AI coding assistant's behavior, potentially leading to unauthorized code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-36730?
CVE-2025-36730 is a medium-severity code injection vulnerability in Windsurf, published on 14 Oct 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-1427
Which versions are affected by CVE-2025-36730?
How do I fix CVE-2025-36730?
No fix has been published for CVE-2025-36730 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-36730 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-36730 exists.
Sources
Also known as GHSA-6mh4-fc28-667v.