Connection to Cursor server failed: spawn EPERM

Describe the Bug

I’m using Cursor with Windows and WSL. It was working just fine a few days ago… But now it just doesn’t work, whenever I try to connect to the Remote server or try opening cursor directly from the Powershell terminal while using WSL, it doesn’t work.
I get Connection to Cursor server failed: spawn EPERM.
I tried “Reinstall server” and it also does not work, the error just keep repeating.
I’ve tried uninstalling and installing Cursor again, no success. WSL + VS Code is working just fine with Remote, but not Cursor.

Steps to Reproduce

Run WSL, try to open any directory inside of the ubuntu instance through Cursor.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6 (user setup)
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:20:02.577Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Hey, sorry about this - we were facing some issues serving our extension binaries but everything should be working again now!

Do we need download a new version of the app?

Hi @p-arth, could you share the full logs from the “Remote - WSL” output window? From the error message it sounds like this is a permissions issue where we are unable to call “wsl.exe” to spawn a subprocess.

Hi @ravirahman ! If I try to open the directory with cursor. I do not see any logs in the output window, check it out:

But if I open cursor normally, and try to open my WSL remote, I get the following:

2025-07-01 10:23:27.232 [info] Resolving wsl remote authority ‘wsl+Ubuntu’ (attempt #1)

2025-07-01 10:23:27.232 [info] Checking output for installServerScript

2025-07-01 10:23:27.233 [error] Error installing Cursor server A system error occurred (spawn EPERM)

2025-07-01 10:23:33.096 [info] Resolving wsl remote authority ‘wsl+Ubuntu’ (attempt #1)

2025-07-01 10:23:33.096 [info] Checking output for installServerScript

2025-07-01 10:23:33.096 [error] Error installing Cursor server A system error occurred (spawn EPERM)

2025-07-01 10:25:01.133 [info] [wsl listDistros] Running command

2025-07-01 10:25:03.787 [info] Resolving wsl remote authority ‘wsl+docker-desktop’ (attempt #1)

2025-07-01 10:25:03.787 [info] Checking output for installServerScript

2025-07-01 10:25:03.787 [error] Error installing Cursor server A system error occurred (spawn EPERM)

Hi @p-arth, thanks for sharing these logs.

If you open a cmd or powershell, does wsl.exe --list work?

Also, do you see the list of distributions in the sidebar under the remote explorer?

This will help us trace down the issue.

Thanks!

I just found out the issue. Since the last update, for some reason now Windows Defender is flagging the WSL Remote connection through cursor specifically (it works with VS Code) as something unsafe, I guess? If I deactivate the live-protection from Windows Defender, it works.
This just happens with Cursor, I can remote connect to WSL by any other means, but not with Cursor.
You guys should really look into that to fix it, pretty weird that I need to make my system “unsafe” to be able to use such a simple feature that was working before.

Could you share more about what windows defender found / why live scan blocked it? Definitely, we’ll see if there’s anything we can do to prevent this from happening.