Windsurf IDE has become one of the most widely adopted AI coding assistants for enterprise development teams in 2026. Before your security team approves it for production use, two critical CVEs, a nuanced data retention model, and a set of enterprise configuration controls require careful review. This guide covers everything a CISO or security engineer needs: what Windsurf sends to the cloud, the exact attack surface exposed by CVE-2025-62353 and CVE-2026-30615, how to configure the tool for regulated environments, and how to detect Windsurf-related incidents in your SIEM.
Key Takeaways
- CVE-2025-62353 (CVSS 9.8) enables arbitrary file read and write on developer machines via prompt injection, bypassing Windsurf's own deny-list and auto-execution safeguards.
- CVE-2026-30615 (CVSS 8.0) allows zero-click remote code execution through malicious HTML content that automatically registers a backdoor MCP server.
- Zero Data Retention mode prevents code storage, but code context still transits to cloud infrastructure on every interaction.
- Enterprise and Teams tiers include SAML SSO, audit logging, RBAC, and on-premises deployment options that reduce the attack surface substantially.
.codeiumignorelimits what code enters the AI context window, but prompt injection can bypass it, making it one layer in a defense-in-depth strategy, not a complete control.- Windsurf holds SOC 2 Type II, FedRAMP High, HIPAA BAA, and ITAR certifications, giving it a stronger compliance baseline than Cursor for regulated environments.
- Your SIEM should alert on MCP config changes, path traversal indicators, and large data uploads to Windsurf cloud endpoints.
What Windsurf Sends to the Cloud
When a developer opens Windsurf and starts coding, several categories of data leave the machine and travel to Windsurf's cloud infrastructure:
Code context. The active file content is sent with every completion or chat request. Windsurf also pulls in nearby files within the project context window to give the model additional signal for generating relevant suggestions.
File tree. The directory structure of the open project is transmitted so the model understands module boundaries, import paths, and project layout.
Git history. Commit messages and branch names are included when available. In repositories with descriptive commits, this can expose internal project names, ticket references, or feature descriptions.
Clipboard contents. When developers paste code or text into Windsurf's chat interface, that content enters the AI context and is transmitted.
Shell output. Terminal command results shown inside the IDE feed into the model's context when the terminal integration is active.
This data flow is not unique to Windsurf. GitHub Copilot, Cursor, and other AI coding tools share a similar architecture. The distinction that matters for enterprise risk management is what controls exist to limit that transmission and what happens to the data once it arrives.
Windsurf's Zero Data Retention mode, enabled by default on Teams and Enterprise accounts, prevents code from being stored in inference logs or used for model training. That is a meaningful privacy control, but it governs storage rather than transmission. Code still travels over the wire on every request. For intellectual property-sensitive workloads or regulated data, the architecture that fully addresses transmission risk is Windsurf's hybrid or self-hosted deployment, where traffic routes through customer-managed infrastructure rather than Windsurf's SaaS endpoints.
CVE-2025-62353: Critical Path Traversal via Prompt Injection
CVE-2025-62353 carries a CVSS score of 9.8 and was published in October 2025. Security firm HiddenLayer discovered and disclosed the vulnerability, which affects all versions of Windsurf IDE.
What the vulnerability does. An attacker who can plant a malicious file in a repository or project directory, including a README.md, a documentation file, or any file a developer opens, can embed prompt injection instructions that cause Windsurf to read or write arbitrary files anywhere on the developer's filesystem. The traversal is not limited to the project directory.
Why it is particularly dangerous. The vulnerability was shown to exfiltrate secrets even when Auto Execution was explicitly disabled and write_to_file was on the tool deny list. That means the normal safety controls users rely on to contain Windsurf's behavior provided no protection in the demonstrated attack path. Hiding an instruction in a file a developer opens is a low-friction initial access technique for targeting developer machines in a supply chain attack.
Enterprise impact. In a typical enterprise environment, developer machines hold SSH keys, cloud provider credentials, API tokens, and VPN certificates. A single malicious file in a shared repository that is opened by multiple developers exposes all of those secrets to exfiltration without any obvious indicator of compromise. The attacker's payload is in the repository content, not in a process or network connection that endpoint detection would flag.
Mitigation. Windsurf released a patch. Confirm all organizational seats are running a patched version. Even on patched versions, the broader prompt injection attack surface remains, so additional controls are warranted: disable auto-execution, require manual approval for all file read and write tool invocations, deploy endpoint DLP to alert on large file access events involving the Windsurf process, and treat any file content from external repositories as potentially untrusted prompt material.
CVE-2026-30615: Zero-Click MCP Remote Code Execution
CVE-2026-30615 carries a CVSS score of 8.0 and was published in April 2026. OX Security's research disclosed the vulnerability, which affected Windsurf version 1.9544.26.
What the vulnerability does. An attacker who can deliver malicious HTML content to a Windsurf user, through a web-browsed documentation page, an HTML file in a repository, or any context where Windsurf processes HTML, can embed prompt injection instructions that cause Windsurf to automatically register a malicious MCP STDIO server. Once registered, that server can execute arbitrary commands on the developer's machine without further user interaction.
Why it stood out in the research. Windsurf 1.9544.26 was the only AI IDE in the OX Security disclosure that enabled exploitation without any user interaction beyond opening a malicious HTML file. Other IDEs in the same research required at least one user confirmation step before execution. The zero-click characteristic significantly raises the threat level because user awareness or caution provides no defense.
MCP as an attack surface. The Model Context Protocol is now widely integrated into AI development tools as the mechanism that connects AI models to external data sources, APIs, and command execution. An attacker who successfully registers a malicious MCP server gains persistent access to command execution that survives across IDE sessions. This is not a single file exfiltration. It is a persistent foothold on the developer machine.
Enterprise impact. Lateral movement from a compromised developer machine is a well-documented attack path. From a developer machine, attackers can access source code repositories, cloud deployment credentials, internal APIs, and CI/CD pipeline secrets. The lateral movement risk from a single CVE-2026-30615 compromise is proportional to what that developer's machine can reach in the corporate environment.
Mitigation. Apply the patch. Beyond patching, restrict which MCP servers can be registered through Windsurf's admin controls. Implement a MCP allowlist so only approved servers can be added to organizational configurations. Alert in your SIEM on any modification to MCP configuration files (.mcp.json or the platform-equivalent) that does not originate from an approved administrative action.
Data Governance: ZDR, DPA, and the .codeiumignore Configuration
Zero Data Retention and Deployment Modes
Windsurf supports three deployment architectures for enterprise customers:
Cloud (SaaS). Standard deployment. Code transits to and is processed in Windsurf's cloud infrastructure. ZDR mode prevents storage and training use. Suitable for non-regulated code.
Hybrid. The customer owns and operates the model endpoints. Traffic routes through customer infrastructure rather than Windsurf's SaaS endpoints. This limits third-party data exposure for regulated or sensitive codebases.
Self-Hosted. Full air-gapped deployment for environments where no external network traffic is acceptable. Required for some defense contractor and government use cases.
A Data Processing Agreement is available on the Teams tier and required on Enterprise. Organizations subject to HIPAA, ITAR, FedRAMP, or the EU AI Act should obtain a signed DPA before allowing Windsurf deployment across development teams.
Configuring .codeiumignore
The .codeiumignore file uses .gitignore syntax to prevent specified files and directories from entering the AI context window. Every file excluded from .codeiumignore is a file whose content will not be transmitted to Windsurf's model during completions or chat.
A minimum enterprise .codeiumignore should exclude:
.env
.env.*
*.pem
*.key
*.p12
credentials.json
secrets.json
private_key*
deploy-key*
/config/secrets/
/infrastructure/terraform/
/docs/internal/
Organizations can deploy a global .codeiumignore through Windsurf's admin controls so the exclusion policy applies consistently across all organizational seats, not just developers who configure it manually.
Important limitation. CVE-2025-62353 demonstrated that .codeiumignore can be bypassed through prompt injection. A malicious instruction embedded in a file the developer opens can direct Windsurf to access files explicitly listed in .codeiumignore. Treat .codeiumignore as a control that reduces the attack surface under normal operating conditions. Pair it with DLP monitoring and endpoint controls for a defense that holds under adversarial conditions.
Enterprise Deployment Checklist
Before approving Windsurf for a regulated or sensitive environment, work through this checklist:
Account and licensing tier.
- Confirm deployment is on Teams or Enterprise tier, not the individual free or paid plan.
- Obtain a signed Data Processing Agreement.
- Verify Zero Data Retention is enabled for all organizational seats through the admin panel.
- Enable SAML SSO (included with Enterprise; add-on for Teams).
- Configure SCIM provisioning to automate seat management through your identity provider.
- Assign roles through RBAC: limit admin-level access to security and IT operations staff.
- Disable features not required for your use case: Web Search, MCP, and Deploys can each be toggled off per organization through the admin portal.
- For codebases containing regulated data (PII, PHI, classified information), use hybrid or self-hosted deployment.
- For standard enterprise development, SaaS with ZDR and DPA provides an acceptable baseline.
- For defense contractors with ITAR or DOD requirements, confirm FedRAMP High accreditation applies to your deployment configuration before processing controlled technical data.
- Deploy organizational .codeiumignore files excluding all secrets, keys, certificates, and sensitive directories.
- Disable auto-execution of tools. Require manual approval for file read, file write, and shell command operations.
- Configure MCP allowlists to restrict which MCP servers can be registered.
- Enable audit logging and export logs to your SIEM.
- Add SAST scanning for all AI-generated code before merge.
- Add secret scanning (e.g., truffleHog, gitleaks) to catch any credentials that Windsurf-generated code inadvertently includes.
- Add software composition analysis to track third-party libraries introduced through AI suggestions.
- Add Windsurf to your SOC 2 audit scope as a third-party processor.
- Subscribe to Windsurf's security advisories and CVE disclosures.
- Establish a process for applying IDE updates within 72 hours of a critical CVE disclosure.
Windsurf vs. Cursor: Security Comparison
Both Windsurf and Cursor are popular AI coding assistants in enterprise environments. The security decision between them is not close for regulated industries.
| Feature | Windsurf | Cursor | |---------|----------|--------| | SOC 2 Type II | Yes | Yes | | FedRAMP High | Yes | No | | ITAR compliance | Yes | No | | HIPAA BAA | Yes | Not documented | | On-premises deployment | Yes | No | | Hybrid deployment | Yes | No | | SAML SSO (included in Enterprise) | Yes | Limited | | SCIM provisioning | Yes | No | | Audit logging | Yes (Enterprise) | Limited | | Data Processing Agreement | Yes | Limited |
For developers writing non-sensitive code in standard SaaS environments, both tools offer comparable functionality and similar code security output. Research from Stanford and NYU shows that both, along with other AI coding assistants, produce vulnerable code on security-sensitive tasks approximately 40% of the time. That rate is consistent across tools and underscores the need for SAST and code review regardless of which tool a team uses.
For regulated industries, government contractors, or any team handling data subject to HIPAA, FedRAMP, ITAR, or equivalent frameworks, Windsurf is the more defensible choice based on its certification portfolio, deployment flexibility, and enterprise controls.
For a detailed breakdown of Cursor-specific controls, see Cursor AI Enterprise Security Guide 2026. For a broader comparison of AI coding tools in enterprise environments, see AI Coding Assistant Security: Enterprise Guide.
Detecting Windsurf Incidents in Your SIEM
Windsurf Enterprise exports audit logs that can feed into standard SIEM platforms. Beyond audit logs, several behavioral indicators warrant detection rules:
CVE-2025-62353 indicators. File access events from the Windsurf process that target directories outside the active project. This includes access to ~/.ssh/, ~/.aws/, ~/.config/, system credential stores, and any path containing key, pem, or credentials in the filename. An EDR solution with process-level file access visibility is required to catch this at the endpoint level.
CVE-2026-30615 indicators. Modifications to MCP configuration files (.mcp.json or the platform-equivalent at ~/.config/windsurf/mcp.json) that do not correspond to an approved administrative change. Alert on the creation of new MCP STDIO server registrations, particularly those pointing to external network addresses or unusual local binary paths.
Anomalous data volume. Unusually large uploads to Windsurf cloud endpoints (codeium.com subdomains or equivalent) from developer machines. Baseline normal completion request sizes for your team, then alert on outliers. An attacker using a compromised Windsurf session to exfiltrate files will generate upload events larger than normal completion requests.
Prompt injection payload patterns. Filenames or HTML content in developer repositories containing patterns associated with prompt injection: instructions in angle brackets or square brackets directing the AI to perform actions, phrases like "ignore previous instructions," or explicit tool invocation syntax embedded in documentation files. A DLP rule scanning repository content for these patterns catches malicious files before they reach developer machines.
Shell invocation anomalies. Unexpected command executions from the Windsurf process. In most normal workflows, Windsurf runs terminal commands only when a developer explicitly approves them. Commands appearing in shell logs without corresponding developer activity are a strong indicator of unauthorized tool invocation, consistent with a compromised MCP server.
Correlate Windsurf activity against identity signals: if a Windsurf-associated account accesses sensitive files or repositories outside of normal working hours, treat that as a priority alert regardless of whether a specific CVE indicator is present.
Conclusion
Windsurf is a capable AI coding assistant with a strong enterprise compliance portfolio. SOC 2 Type II, FedRAMP High, HIPAA BAA, and on-premises deployment options put it ahead of most competitors for regulated environments. The two CVEs disclosed since late 2025 are serious: CVE-2025-62353 bypassed safety controls that Windsurf users relied on for protection, and CVE-2026-30615 enabled zero-click remote code execution through HTML prompt injection.
Neither vulnerability means Windsurf is off-limits for enterprise use. Both mean that approving Windsurf without a configuration review and detection coverage is not a defensible posture. Apply patches, enforce .codeiumignore through admin controls, disable auto-execution, configure MCP allowlists, and build SIEM detections before deployment reaches your production engineering teams.
AI coding tools are here to stay. The security function's role is not to block them but to ensure they are deployed with controls proportional to the data they can access. For most enterprise environments, that means hybrid or self-hosted deployment for regulated codebases, ZDR and DPA for standard workloads, and continuous monitoring for the prompt injection techniques that CVE-2025-62353 and CVE-2026-30615 demonstrated are actively exploitable.
Run a Securetom scan to identify which AI coding tools are active across your engineering environment and surface configuration gaps before your next security review.
Sources: CVE-2025-62353 NVD, CVE-2026-30615 GitHub Advisory, OX Security MCP Supply Chain Advisory, Windsurf Docs: Windsurf Ignore, NIST SSDF, OWASP AISVS
Check your AI endpoint against these findings
SecureTom runs a free quick scan on any AI endpoint in about a minute. No signup needed.

