A recent discovery highlights a severe security flaw in the Cursor development tool: simply opening the application on a developer's machine can leak sensitive authentication tokens. This vulnerability, which affects token-based security in supply chains and dev tools, allows attackers to access private repositories and systems if a developer inadvertently opens a malicious project.
The issue revolves around Cursor's integration with various services that require tokens. When a developer opens Cursor, it may automatically load configurations or extensions that expose tokens stored in environment variables or configuration files. This opens the door for supply chain attacks, where a compromised project can steal tokens the moment it's opened.
Security experts urge developers to review their Cursor settings immediately, avoid opening untrusted projects, and use token management best practices. The flaw underscores the growing risks in AI-powered development tools and the need for stricter security measures.