Cursor AI Code Editor Vulnerability Allows Silent Code Execution from Malicious Repositories
4 sources · Updated 5mo ago · First seen Sep 15, 2025
A default security setting in the Cursor AI code editor allows attackers to execute arbitrary code when a user opens a malicious repository. The Workspace Trust feature, which prevents such autorun behavior, is disabled by default in Cursor, unlike in VS Code. Researchers recommend enabling Workspace Trust or using alternative editors for untrusted code to mitigate this risk.


