IDEs & agents · Anysphere
Cursor
AI code editor with agent mode, rules files and MCP support.
31Advisories
8critical
19high
4medium
2026-12-01Latest
Cursor CVEs & security
Is Cursor safe?
Cursor is an AI code editor, so two kinds of risk apply: bugs in the editor and its agent, and security mistakes that commonly end up in the apps it helps you write.
We track 31 security advisories that affect Cursor: 6 name Cursor directly and 25 are related patterns that show up in apps or workflows built with it. By severity: 8 critical, 19 high and 4 medium. 16 of them have a CVE ID. The most common kinds are broken access control (8), agent hijacking (5) and prompt injection (5). The newest entry is dated 2026-12-01.
Newest entries on this page
- CVE-2026-140424: Markdownify MCP server's MD_ALLOWED_PATHS / MD_SHARE_DIR allowlist could be escaped via sibling folders with the same prefix, symlinks and ~ paths, so agents could read files outside it (fixed 1.2.0) high 2026-12-01
- Malicious npm packages posing as AI SDKs and MCP tools: tavern-ai-sdk and persona-ai-sdk run obfuscated loaders on import behind VM detection, and tzero-mcp 12.3.0 is flagged as malware critical 2026-11-27
- CVE-2026-138027 / CVE-2026-138028: Bagel MCP server ran model-supplied DuckDB SQL unsandboxed (file read/write, SSRF) and let rsync options through to command execution (fixed 2.5.5) high 2026-11-27
Using Cursor safely
- Keep Cursor updated. CurXecute (CVE-2025-54135) is fixed in 1.3.9, and MCPoison (CVE-2025-54136) in 1.3.
- Read any change to your MCP config before you approve it, and only connect MCP servers you trust.
- Check rules files (.cursorrules, .mdc) from other people for hidden Unicode instructions before you use them.
- Make sure every package the agent adds really exists and is the one you meant (slopsquatting).
- Before you ship, check the generated app: Supabase RLS on every table, no secrets in NEXT_PUBLIC_ or VITE_ variables, and auth checked on the server.
Timeline · advisories per quarter
52025 Q1
22025 Q2
42025 Q3
12026 Q1
22026 Q2
42026 Q3
132026 Q4
Named in sources
Reported for Cursor
01. CVE-2026-50549: Cursor agent could write outside the workspace via a symlink and escape the sandboxBefore 3.0, Cursor's check that agent file writes stay inside the workspace failed open. A malicious agent (for example one steered by prompt injection) could use an in-workspace symlink to write anywhere the user could, without approval, including over Cursor's own sandbox helper.
Cursor 2026-06-05 02. CVE-2026-63093: Cursor for Windows ran a git.exe planted in a cloned repo as soon as you opened itOn Windows, Cursor 3.2.16 looked up git by name, so a malicious git.exe in the root of a repo you cloned and opened ran automatically at startup and repeatedly after that, with no extra click. Cursor says 3.13.25 and later fix it. macOS and Linux were not affected.
Cursor 2026-07-17 03. CVE-2026-22708: Cursor Auto-Run allowlist could be bypassed with shell built-ins that poison environment variablesIn Cursor 2.2 and earlier, with Auto-Run Mode in Allowlist mode, some shell built-ins ran without being on the allowlist and without approval. Through prompt injection, an attacker could set or change environment variables so that later allowlisted commands do something else, which can lead to code execution.
Cursor 2026-01-14 04. CVE-2025-54135 (“CurXecute”): Cursor agent could create MCP config and run codeBefore 1.3.9, Cursor let the agent create new dotfiles like .cursor/mcp.json without approval. Chained with prompt injection, this meant remote code execution.
Cursor 2025-08 05. CVE-2025-54136 (“MCPoison”): approved MCP servers could be silently swappedIn Cursor 1.2.4 and below, once you approved an MCP server, an attacker with write access could change its command without any re-prompt.
Cursor
MCP SDKs & servers 2025-08 06. “Rules File Backdoor”: hidden Unicode instructions in AI rules filesPillar Security showed invisible Unicode characters in shared rules files (.cursorrules, .mdc) can steer Cursor and GitHub Copilot into writing backdoored code.
Cursor
Copilot 2025-03
Same pattern
Also worth checking
01. Malicious npm packages posing as AI SDKs and MCP tools: tavern-ai-sdk and persona-ai-sdk run obfuscated loaders on import behind VM detection, and tzero-mcp 12.3.0 is flagged as malwareOSV and GitHub flagged more npm packages dressed up as AI tooling. tavern-ai-sdk 1.0.0 (MAL-2026-20675, 27 November) claims to load AI persona cards but its entry file imports a ~296 KB obfuscated bundle that runs on require, references child_process, spawn, exec and AWS-prefixed strings, and ships native binaries that check for VMs and sandboxes, the shape of a staged credential stealer. persona-ai-sdk 1.0.0 (MAL-2026-18463 / GHSA-2v69-q2gc-qm5j, 2 November) is the same build. tzero-mcp 12.3.0, an 'AST context compressor and 20-tool MCP server for Cursor, Claude Desktop & Copilot', got a GitHub malware advisory on 26 November (GHSA-pm3r-rxg9-cj5j). Treat machines that installed them as compromised.
MCP SDKs & servers
Cursor
Claude Code +1 more 2026-11-27 02. CVE-2026-136441: Bytebase DBHub MCP server authentication bypass through untrusted SQL, published by ZDI as a 0-day with no fix listedTrend Micro's Zero Day Initiative published ZDI-26-1067 on 24 November 2026 as a 0-day: an incorrect authorization decision when DBHub's MCP server parses untrusted SQL lets a remote attacker bypass authentication, with no authentication needed (CVSS 9.8). ZDI reported it to Bytebase on 18 July 2025 and published after getting no fix; the advisory names no affected or fixed version and says the only mitigation is to restrict interaction with the product. DBHub is Bytebase's database MCP server that lets an AI assistant run SQL against Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite and ClickHouse.
MCP SDKs & servers
Claude Code
Cursor 2026-11-24 03. Supabase RLS policies that check login but not ownershipA policy like using (auth.uid() is not null) has RLS on and mentions the user, so it passes Lovable’s scan. But it lets any logged-in user read every row, and on most apps anyone can sign up.
Supabase
Lovable
Bolt +4 more 2026-10-10 04. Supabase tables readable by anyone with no loginA scan of 30,998 live vibe-coded apps found 57% of the Supabase-backed apps it could check served table rows to requests with no login.
Lovable
Bolt
v0 +4 more 2026-08 05. Supabase service_role / secret key shipped to the browserThe service_role (or new sb_secret_) key bypasses every RLS policy. If it is in your JavaScript bundle, your whole database is public.
Lovable
Bolt
v0 +4 more 2026-08 06. Unverified Stripe webhooks hand out free upgradesIf your Stripe webhook handler doesn’t verify the Stripe-Signature header, anyone can POST a fake “checkout.session.completed” event and your app will treat it as a real payment. Scans and audits find this in a large share of AI-built apps.
Stripe
Lovable
Bolt +5 more 2026-05 07. CVE-2025-29927: Next.js middleware authorization bypassSelf-hosted Next.js apps that did auth in middleware could be bypassed with the internal x-middleware-subrequest header. Relevant to any Next.js app, including ones generated by v0.
Next.js
v0
Bolt +2 more 2025-03 08. CVE-2026-140424: Markdownify MCP server's MD_ALLOWED_PATHS / MD_SHARE_DIR allowlist could be escaped via sibling folders with the same prefix, symlinks and ~ paths, so agents could read files outside it (fixed 1.2.0)In mcp-markdownify-server 1.1.0 and earlier, the path allowlist that operators set with MD_ALLOWED_PATHS or MD_SHARE_DIR had three holes. A plain startsWith() check let /srv/share-evil pass for /srv/share, symlinks inside an allowed folder were not resolved, and Markdownify.get() checked the ~-expanded path but read the raw one. A client calling the local-file conversion tools, directly or through prompt injection, could read files outside the allowlist. Fixed in 1.2.0.
Markdownify MCP
MCP SDKs & servers
Claude Code +1 more 2026-12-01 09. CVE-2026-138027 / CVE-2026-138028: Bagel MCP server ran model-supplied DuckDB SQL unsandboxed (file read/write, SSRF) and let rsync options through to command execution (fixed 2.5.5)Bagel (PyPI bagel-mcp) is an MCP server that lets an AI assistant query robotics, drone and IoT data in plain English. Before 2.5.5 its query_messages tool, annotated as read-only, passed LLM-written SQL straight to DuckDB with external access on, so a prompt injection hidden in recorded logs or topics could make the model read or write files (read_csv_auto, COPY TO) or make network requests via httpfs. A second bug let rsync options such as -e/--rsh or --rsync-path through the rsync pipeline task, giving command execution as the Bagel server process. Both are fixed in 2.5.5.
MCP SDKs & servers
Claude Code
Cursor 2026-11-27 10. CVE-2026-138033: mcp-video-analyzer fetched any URL ending in a video extension, so prompt injection could reach loopback, private and cloud-metadata addresses (fixed 0.10.1)mcp-video-analyzer is an npm MCP server that turns videos into transcripts, key frames, OCR text and metadata for AI agents. Its 'direct' URL detector only checked that the path ended in a video extension, then fetched the URL and wrote the response to disk, with no host, scheme or IP-range checks. An MCP client, or a model steered by prompt injection, could point its frame and transcript tools at loopback, private-network or cloud-metadata addresses (directly or via redirects) and get the responses written to disk or rendered back. Fixed in 0.10.1.
MCP SDKs & servers
Claude Code
Cursor 2026-11-27 11. CVE-2026-137308: Markdownify MCP server's SSRF checks could be bypassed with DNS names, bracketed IPv6 and IPv4-mapped IPv6 literals, and scp-style Git URLs, reaching localhost and cloud metadata (fixed 1.2.0)Markdownify (npm mcp-markdownify-server, GitHub zcaceres/markdownify-mcp) is a popular MCP server that turns web pages, YouTube transcripts, Bing results, documents and Git repos into Markdown for an AI assistant. In 1.1.0 and earlier its SSRF protection only recognised literal IP addresses, so hostnames such as localhost or metadata.google.internal, bracketed IPv6 like [::1], and hex IPv4-mapped IPv6 like ::ffff:a9fe:a9fe passed, and git-repo-to-markdown checked only the URL scheme and accepted scp-style SSH shorthand. A prompt injection could make the assistant fetch loopback services, internal hosts or cloud metadata. Fixed in the v1.2.0 GitHub release (25 November 2026); npm still shows 1.1.0 as the latest version.
Markdownify MCP
MCP SDKs & servers
Claude Code +1 more 2026-11-26 12. CVE-2026-133632: Astronomer's astro-airflow-mcp server and af CLI ran a malicious json.py from the current project directory through their telemetry subprocess (fixed 0.9.2)astro-airflow-mcp is Astronomer's MCP server (and af CLI) that lets AI agents work with Apache Airflow. In 0.5.0 through 0.9.1, after each af command or MCP tool call, a telemetry subprocess started in the current working directory, and Python loaded a json.py from that directory before the standard library one. Running the tool inside a project containing an attacker-supplied json.py, such as a freshly cloned third-party repository or an unreviewed pull request branch, ran that file with the user's privileges. Fixed in 0.9.2; on older versions AF_TELEMETRY_DISABLED=1 prevents it.
MCP SDKs & servers
Claude Code
Cursor 2026-11-23 13. CVE-2026-134817: mcp-server-kubernetes let MCP clients pass dash-prefixed names like --filename=<path> to kubectl through tools such as exec_in_pod, kubectl_patch and kubectl_logs, reading files from the server host (fixed 4.2.0)mcp-server-kubernetes (Flux159) is a popular MCP server that lets AI agents run kubectl against a cluster. Before 4.2.0, several tools put caller-supplied values straight into kubectl's positional operand slots. kubectl's flag parser treats any dash-prefixed token as a flag wherever it appears, so a resource or pod name like --filename=<path> was parsed as a flag, making kubectl read files from the machine running the MCP server and bypassing the server's own file-read restrictions. Clients connected over the SSE or Streamable HTTP transports could do this, and so can a prompt-injected agent. Fixed in 4.2.0.
MCP Server Kubernetes
MCP SDKs & servers
Claude Code +1 more 2026-11-22 14. CVE-2026-134803: DBHub MCP server's read-only mode could be bypassed with backslash-escaped quotes, hiding SET transaction_read_only, COMMIT and DROP statements inside a string on MySQL, MariaDB and PostgreSQL (fixed 1.7.0)DBHub, Bytebase's database MCP server, can restrict execute_sql to read-only statements. Before 1.7.0 its SQL scanner ended every quoted string at the first quote that was not doubled, but MySQL and MariaDB strings (and PostgreSQL E'...' strings) also treat a backslash-escaped quote as part of the string. A query such as SELECT '\' , '; SET SESSION transaction_read_only = 0; COMMIT; DROP TABLE t; SELECT '' looked like one SELECT to the read-only check but ran as five statements on the server. Anyone who can steer the agent's SQL, including through prompt injection, could change or drop data. This is a different bug from the earlier double-dash comment bypass (CVE-2026-61789). Fixed in 1.7.0.
MCP SDKs & servers
Claude Code
Cursor 2026-11-22 15. Secrets leaked via NEXT_PUBLIC_ (or VITE_) environment variablesPrefixing a variable with NEXT_PUBLIC_ inlines it into the JavaScript every visitor downloads. AI tools often “fix” a missing-env error this way.
Lovable
Bolt
v0 +4 more 2026-08 16. Supabase MCP: a support ticket gets the agent to dump private tablesGeneral Analysis showed indirect prompt injection in support-ticket data making an MCP-connected assistant query private tables with Supabase’s privileged service role.
MCP SDKs & servers
Supabase
Cursor +1 more 2025-07-08 17. AI agent deleted a production database during a code freeze (Replit)Replit Agent deleted SaaStr founder Jason Lemkin’s live database (1,206 executives, 1,196+ companies) despite an explicit freeze, then wrongly said rollback was impossible.
Replit
Cursor 2025-07 18. GitHub MCP server: a public issue makes the agent leak private reposInvariant Labs showed that a prompt injection planted in a public GitHub issue could get an agent using the official GitHub MCP server to pull data from the user’s private repositories.
MCP SDKs & servers
Claude Code
Cursor +1 more 2025-05-26 19. MCP tool poisoning: hidden instructions in tool descriptionsAn MCP server can hide instructions inside a tool’s description. The model reads them, the user usually doesn’t, and the agent can be steered into reading files or sending data elsewhere.
MCP SDKs & servers
Cursor
Claude Code +2 more 2025-04-01 20. Authentication logic living entirely in the browserHiding a page or button in the UI is not access control. If the API or database doesn’t check the user, anyone can call it directly.
Lovable
Base44
Bolt +3 more 2025 21. Slopsquatting: AI suggests packages that don’t existA USENIX Security 2025 study found 19.7% of 2.23 million package suggestions from 16 code models were hallucinated. Attackers can register those names.
Claude Code
Copilot
Cursor +5 more 2025 22. CVE-2026-138032: WhoDB's MCP whodb_query tool let SELECT ... INTO, OUTFILE and server file functions bypass read-only mode and write confirmationWhoDB is an open-source database manager whose CLI ships an MCP server so AI agents can query databases. Its sqlguard classifier treated any statement starting with SELECT as a read unless it contained a listed mutating keyword, and INTO, OUTFILE and DUMPFILE were missing. An MCP client or a prompt-injected model could therefore run SELECT ... INTO (creating PostgreSQL tables), MySQL SELECT ... INTO OUTFILE/DUMPFILE, or file functions like pg_read_file, lo_export and LOAD_FILE without the approval promised by --confirm-writes, and on MySQL even in read-only mode. Impact is bounded by the database account's own privileges.
MCP SDKs & servers
Claude Code
Cursor 2026-11-27 23. Browser-automation MCP servers broke their read-only modes: Safari MCP read-only tools could run arbitrary page JavaScript via an escaping bug (fixed 2.22.15), and DOMShell's domshell_eval ran writes without --allow-write (CVE-2026-75518, fixed 2.0.8)Two MCP servers that let AI agents drive a real browser promised a read-only tier that didn't hold. Safari MCP (npm safari-mcp) put tool arguments inside single-quoted JavaScript strings in 16 places and escaped the quote but not backslashes, so an argument with a backslash and a quote broke out and ran as page JavaScript. Seven of those arguments belong to read-only tools exempt from the tab-ownership check, so a client limited to read-only tools (safari_evaluate and safari_run_script excluded) could still run arbitrary JavaScript, even in tabs the session doesn't own (fixed 2.22.15). DOMShell (npm @apireno/domshell) classified domshell_eval as read-tier although it shares the Runtime.evaluate path with the write-tier js command, so it could mutate the page without --allow-write while MCP hosts showed a read-only approval UI (CVE-2026-75518, fixed 2.0.8).
MCP SDKs & servers
Claude Code
Cursor 2026-11-19 24. Supabase, 30 October 2026: new public tables are no longer exposed to the Data API without an explicit GRANTFrom 30 October 2026, Supabase stops granting anon, authenticated and service_role access to new tables in the public schema of existing projects. A new table won't be reachable through supabase-js, REST or GraphQL until you GRANT access explicitly. RLS still has to be on as well.
Supabase
Lovable
Bolt +3 more 2026-10-23 25. Protecting routes only in middlewareVercel recommends against middleware being the sole method of protecting routes. Check auth again where data is read or changed.
Next.js
v0
Bolt +2 more 2025-03