Anysphere closes Cursor CLI sandbox escape through Git hooks

Researchers behind Beltdown2 found that a malicious workspace could set a core.fsmonitor hook in .git/config and make Cursor CLI run a Git command outside its macOS Seatbelt sandbox after a read-only prompt. An untrusted repository could then write outside that sandbox into a developer's home directory. Anysphere acknowledged the issue and released Cursor CLI 2026.08.04-aaa8809, which disables core.fsmonitor, custom hooks and repository attributes for Git processes the assistant starts.
PositiveResearchers disclosed the Cursor sandbox escape and Anysphere shipped a mitigation that blocks the Git settings used to trigger it.
Earlier on this thread
- Sept. 15Cursor launches long-running coding-agent Projects in beta
- Sept. 3Cursor lets cloud coding agents run tools on company machines
- Aug. 29OpenAI proposes ending Cursor's access to its models on November 12