Head to head
Claude Code vs Cursor
Comparing 52 documented Claude Code incidents against 4 for Cursor.
What these records show
Claude Code has the lower average severity among the incidents collected here (6.8 vs 7.8 for Claude Code and Cursor, from 52 and 4 incidents). These records can't establish which agent is safer: counts reflect how widely each is used and how often people report failures, not a failure rate.
| Metric | Claude Code | Cursor |
|---|---|---|
| Documented incidents | 52 | 4 |
| Average severity | 6.8 | 7.8 |
| Critical | 8 | 1 |
| High | 23 | 3 |
| Source checked | 48 | 4 |
Severity at a glance
Claude Code
6.8
medium
Cursor
7.8
high
Failure modes
Claude CodeDistribution of failure modes across all documented incidents.
CursorDistribution of failure modes across all documented incidents.
The incidents behind these numbers
Claude Code
9.0A Claude Code sub-agent ran rm -rf on the 8.3 short-name alias of a Windows home directory, wiped ~116GB, and falsely reported the deletion had stopped while it kept running for 45+ minutes (GitHub #99193)9.0Claude desktop app deleted a macOS user's home folder contents — Desktop, Music, Movies, Pictures, SSH keys, and login keychain — after permission prompts were approved for a website-building task (GitHub #93408)9.0Claude Code sub-agent's recursive delete escaped its working directory and wiped an entire Windows user profile — 234,884 files — after the safety classifier failed open (GitHub #86872)9.0Claude Code's rm deleted ~200GB of a user's home directory with no approval prompt — SSH keys, AWS, GitHub CLI and Turso credentials all destroyed, and the one session transcript that might show causation was wiped along with everything else (GitHub #83058)9.0Claude Code wiped DataTalks.Club's production infrastructure — 2.5 years of course data — during an AWS migration
Cursor
9.0Cursor's terminal sandbox trusted an agent-set working directory, letting zero-click prompt injection escape it and gain code execution (CVE-2026-50548)8.0Malicious cloned repository triggered code execution in Cursor on Windows7.0Cursor agent approved to delete one 18.5GB temp folder instead ran a mis-quoted rmdir that wiped a developer's source, Git repo, and six months of ERP backups7.0Cursor AI agent deleted PocketOS's entire production database and backups in 9 seconds