ShipSafe has 34 sourced items that involve Cursor: 14 build stories and 20 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Cursor builders get stuck
Dependencies, plugins & MCP servers (9): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Leaked secrets & API keys (4): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
Trusting agents & AI input (4): Agents read web pages, files, emails and tool output that can hide instructions. Give agents the fewest permissions possible and approve anything that runs commands, sends data, deletes or pays.
Losing project context (3): Keep one short project brief in the repo that every AI tool reads, enforce rules with tools, and commit working steps.
Usage limits, credits & costs (3): Plans and credits run out faster than people expect. Check usage daily, use cheaper models or plan mode for small edits, and commit progress so a limit pauses you instead of stranding work.
Auth, sessions & access (2): AI writes login quickly but often misses expiry, logout and who-can-see-what. Test logging out, expired sessions and another user's data before launch.
Fix loops & regressions (2): After 2–3 failed fixes, stop. Restore the last working version, start a fresh chat, paste the exact error and ask for one small change.
Outgrowing the builder (2): Many builders hit a ceiling and rebuild. Put code in your own Git repo early and know where your database lives.
Payments & webhooks (2): Checkout works but webhooks fail silently. Verify signatures, handle failed and duplicate events, and run one real payment before launch.
Agents deleting data (2): Agents with production credentials have wiped databases. Keep production keys out of dev, turn off auto-run for commands, and test restoring a backup.
Open database rules (1): Supabase/Firebase apps without row-level security expose every row to anyone with the public key. Turn on RLS and test with a second account.
How to use these Cursor stories
Read the summary and the original post, then copy the fix prompt into Cursor or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to Cursor, so the topic links above show the same mistake in other tools.
Redproof read the code of 1,029 public apps built with Lovable, Bolt, v0, Cursor, Claude Code and other tools. 40% had at least one high or critical problem: 62% of 201 Lovable, Bolt and v0 apps and 20% of 152 full-stack Cursor and Claude Code projects. 15% had a .env secrets file committed, and among 174 n8n, Make, Zapier and bot projects, 9% leaked a secret.
Backslash Security published research on 25 Nov 2026: it scanned 2,504 public GitHub repositories holding chat logs and other agent files from nine AI coding tools and found 708 exposed secrets in 255 of them (about 10%), and it assesses about 200 are likely still valid. Backslash says 7 in 10 of the secrets got into the logs through the agent's own actions, such as reading a .env file, writing a key into a config file or running a command that printed it, not because a user pasted them. It says every one of the nine tools it examined leaked secrets this way, and that deleting the log does not help because it stays in git history, forks and clones.
On 17 Nov 2026 Lumia Security Labs published research showing that the auto-update flows of Cursor, Antigravity, VS Code, Claude Desktop and Claude Code can be hijacked by an attacker who can intercept TLS traffic. Lumia says Cursor's and Claude's executables are signed but the signature isn't checked, VS Code relies on a checksum that comes in the same metadata, and Claude Code's newer signed update metadata check is gated by an unsigned feature flag. Codex and ChatGPT, updated through the Microsoft Store, were not interceptable this way. Lumia shows how corporate DLP/SASE inspection or a loose AD CS certificate template can provide the trust needed. Vendors don't treat it as a vulnerability because it needs a TLS man-in-the-middle first.
On 18 Nov 2026 the Model Context Protocol servers project shipped v2.5.0, fixing eight vulnerabilities in three reference servers. Most are in mcp-server-git, a week after the core.fsmonitor fix in 2026.11.11: a git_merge could start Git's automatic maintenance and run a command named in the repository's gc.recentObjectsHook; a promisor-remote setting could make a read-only tool launch a program during a lazy fetch; a config include created by a merged branch, or a filter driver with an empty name, could still run a command; a submodule's own configuration could run programs on git_diff, git_checkout and git_add; and a crafted .git/index could make read-only tools return files outside the --repository boundary. The release also fixes @modelcontextprotocol/server-filesystem (2.4.0) and server-everything (2.3.1). Commands run with the MCP server's privileges, including credentials passed in the client's env block.
Bitdefender Labs said on 17 Nov 2026 it had found 22 malicious GitHub links built to target developers using AI coding assistants. Files such as AGENTS.md and CLAUDE.md tell the assistant that scripts/setup.js is a 'sealed' signed artifact it must not read, and to run it automatically at session start without asking. A second route uses a session-start hook in .claude/settings.json, so the script runs once the repo is trusted with no prompt at all. The heavily obfuscated payload steals CI/CD tokens, cloud secrets, package-registry credentials, SSH keys, .env files, API keys, browser and password-manager data, then searches the machine for config files of 14 agents (Claude, Codex, Gemini, Copilot, Cursor, Bolt, Cline, Aider and others) to plant malicious instructions, hooks or MCP servers. With stolen GitHub or GitLab tokens it can commit the same files into up to 25 other repos by default and try to republish infected packages to npm, PyPI, RubyGems and JFrog.
Cursor's 13 Nov 2026 update on its October incident says an attacker obtained an access key Cursor had issued to Fireworks, which Fireworks exposed, and used it to copy a read-only bucket of coding-agent traces, mostly from 2025 and only from sessions not in Privacy Mode. A small number of traces held credentials that had not been redacted (under 0.01% of customers). With those, the attacker reached SaaS tools Cursor uses and took archived non-production source repos, some support emails, usage metrics and contacts, summaries of some agent conversations, and credentials users had sent to Cursor support. A stolen credential then let them place tampered Claude Code extension builds 2.1.312 and 2.1.313 in Cursor's marketplace cache on 29 Oct, which up to 5,000 users may have received over about 11 hours. Cursor says Privacy Mode code and prompts were not affected and the last attacker activity was on 1 Nov.
Aikido Security reported on 12 Nov 2026 that from 10 November an attacker used stolen tokens for 4,837 GitHub accounts to open probe pull requests in 61,764 repositories, then pushed a roughly 1,500-line shell script into workflows, onto throwaway branches or into an npm postinstall hook. The script collects Actions secrets, GITHUB_TOKEN and OIDC tokens, cloud credentials and AI provider keys, sends them out, then reverts the commit and deletes the workflow run and its logs. Aikido counted at least 1,835 repositories where the payload ran, and said the stealer reached at least one Packagist and one Go package through automated publishing.
Advisory GHSA-6hqx-gqrx-c5r2 (published 11 Nov 2026, rated High) covers mcp-server-git, the reference Git MCP server in modelcontextprotocol/servers. It ran Git without overriding the repository's own config, so a .git/config with a core.fsmonitor or diff.external command made the read-only git_status or git_diff tools run that command with the MCP server's privileges, including any credentials in its environment, with no approval prompt. The payload rides along when a folder is copied with its .git directory intact (an archive, backup, shared folder or CI artifact), not a plain git clone. Fixed in 2026.11.11.
Socket's Threat Research Team analysed strutil-core 1.0.1, a RubyGems package published on 1 November 2026 less than two hours after a clean 1.0.0. During gem install, a native extension script downloads the Bun runtime and runs a 5.48 MB worm from the Shai-Hulud-derived Miasma family. It collects cloud, CI, registry, SSH, wallet and AI coding tool credentials, adds an MCP server named workspace-tools and SessionStart hooks to local agent configs, and with stolen Git credentials commits .claude/settings.json, .cursor/mcp.json, CLAUDE.md, AGENTS.md and a VS Code folder-open task into repositories, so opening the repo in an AI coding tool can run it again. A monitor deletes the home directory if a stolen GitHub token stops working. RubyGems removed both versions about five hours after release; Socket found no public dependents and no confirmed victims.
Glow Labs published research on 2 November documenting a pattern it calls MCPhantom: AI coding agents (Claude Code, Cursor, Codex CLI, Claude Cowork and Claude chat, across Anthropic, OpenAI and xAI models) install deprecated Anthropic Model Context Protocol reference servers from training data when a developer asks for a capability such as a GitHub MCP. In 98% of the reviewed sessions the agent filled in the old package name itself. Those archived servers carry four high-severity flaws, including a prompt-injection remote code execution bug in the Puppeteer server that turns an approved browse into arbitrary local commands. Maintainers confirmed the Puppeteer server is unmaintained and will not be patched; npx still installs the packages. Glow reports about 17 million npm downloads of the deprecated reference servers since July 2025 and no in-the-wild exploitation yet.
Cursor says a tampered copy of the Anthropic.claude-code extension, versions 2.1.312 and 2.1.313 for Windows and macOS, was served in its extension marketplace from about 2:27am to 1:35pm PT on 29 Oct. It was not built by Anthropic. The code reported host details, added an attacker SSH key to authorized_keys, tried to enable SSH and open a reverse tunnel, and installed persistence through a LaunchAgent or scheduled task. Cursor says enabling SSH usually failed without admin rights, but the key and persistence were still written, and uninstalling the extension may not remove them. Microsoft confirmed the Visual Studio Marketplace and npm releases were not affected.
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
Shippable, which sells a security checker, says it ran static checks on about 25,000 public GitHub repos built with Bolt, Lovable, Cursor, Replit and v0 (updated 22 Oct). It says 51% of Bolt repos had at least one security issue and 20% a critical one, with 26% having a database table open to the public; 14% of Lovable repos had committed .env files. It found tokens made with Math.random() across every builder (7% to 14%).
On 19 Oct GitHub's Advisory Database published GHSA-cj9w-7h22-q93g, flagging the npm package api-anthropic as malware for all versions. GitHub says any computer that installed or ran it should be considered fully compromised and every secret on it rotated from a different computer. The name looks like an Anthropic SDK, but the official package is @anthropic-ai/sdk; npm has since replaced api-anthropic with a security placeholder.
On 21 Oct LiteLLM's release pipeline was compromised and a malicious 1.107.0 went out on PyPI (about 11:39 to 13:23 UTC) and Docker tags including latest. Its wheels added cook.pth, cook.py and sitecustomize.py, which run a credential stealer on every Python start, even without importing litellm. It took provider keys, the proxy's stored credentials table, cloud, SSH and CI secrets, and Cursor and Claude config, then left an hourly remote-code loader. LiteLLM says 1.106.2 and the private enterprise release are safe.
Over about three weeks a PM shipped an education platform, started in Lovable, hit its limits, moved to their own repo with Claude Code, and then rebuilt on Next.js for SEO.
A non-developer made progress on a front end with Copilot about 10 months earlier, then got stuck on the database and backend, and is now rebuilding from scratch.
The front end took a weekend, then Stripe webhook bugs, auth edge cases and slow queries took weeks. Note: it was posted by an account named after the starter tool the post ends up promoting.
With auto-run enabled, a reset command wiped the builder's production database. They recovered from a VM snapshot and then added staging, approvals, backups and monitoring.
A car-rental software founder says a Cursor agent called the Railway API with a token it found and deleted a volume holding production data and its backups. HN commenters focused on the over-privileged token and missing off-site backups.
Researchers showed that a prompt hidden in a customer support ticket could make a coding agent, running Supabase MCP with the service_role key, read private tables and post them back into the ticket.
A builder shipped a Lovable/Cursor + Supabase app in three days. Researchers then wrote to the database via a Postgres view that bypassed RLS, and created accounts through Supabase Auth sign-ups that were never switched off.