Hack Forums
Cursor Autorun Flaw Lets Repositories Execute Code Without Consent - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: General Topics (https://hackforums.net/forumdisplay.php?fid=7)
+--- Forum: World (https://hackforums.net/forumdisplay.php?fid=445)
+---- Forum: News and Happenings (https://hackforums.net/forumdisplay.php?fid=89)
+---- Thread: Cursor Autorun Flaw Lets Repositories Execute Code Without Consent (/showthread.php?tid=6308172)



Cursor Autorun Flaw Lets Repositories Execute Code Without Consent - MadScientist - Sep 14, 2025

A newly disclosed flaw in the Cursor extension allows repositories to automatically execute code when a folder is opened, even without a developer’s consent.

The issue stems from the extension’s “autorun” feature, which launches commands tied to workspace events, such as opening a project.

Researchers at Oasis Security found that malicious actors could craft repositories that exploit this functionality. By embedding hidden instructions, attackers can trigger unauthorized code execution the moment a user opens the repository in Visual Studio Code with Cursor installed.

The discovery highlights how supply chain threats are evolving beyond dependency hijacking. Instead of waiting for a developer to run scripts or install packages, adversaries can now weaponize something as routine as opening a folder.

“The Oasis Security team’s findings highlight a serious but often overlooked risk: the silent execution of malicious code through development environments,” said Heath Renfrow, CISO at Fenix24.


Source - https://www.infosecurity-magazine.com/news/cursor-autorun-flaw-repos-execute/