Security review · Cursor
Security review for code written with Cursor
Rare Agentics is a UK software and AI agent engineering firm that reviews apps built with Cursor. We start with what the developer accepted, which means secrets in the repository history, endpoints with no authorisation check and packages nobody read. Every finding is reproduced and ranked in a written report. A review takes 1 to 3 weeks.
- Fixed price in writingYou approve the plan and the price before any paid work starts.
- You own the code from the first commitIt lives in your repositories and your cloud accounts.
- 30 day launch warrantyDefects against the agreed acceptance criteria are fixed at no cost.
How Cursor builds
What does Cursor set up for you?
Cursor is an editor with an agent that reads and edits files and runs terminal commands in your own repository. It does not choose your stack, your database or your hosting. Its documentation says agents can change workspace files without approval, apart from configuration files, so what ships is whatever the developer accepted.
Failure modes
Where do apps built with Cursor usually go wrong?
Secrets committed to the repository
A key written into a file so a feature works, then committed, stays in the Git history after the line is deleted. GitHub’s secret scanning reads the entire history on all branches for this reason.
Endpoints that check sign-in but not ownership
An agent asked for an endpoint that returns an order will write one that returns an order. Whether the caller owns that order is a separate question, and OWASP ranks broken access control first in its 2025 Top 10.
Dependencies added without review
An agent adds whatever package solves the task in front of it. Nobody may have checked who maintains each one, whether it is still supported or what it runs when it installs.
Agent configuration carried in the repository
A project can hold a .cursor/mcp.json file that tells the agent which outside tools to run. Three published advisories (CVE-2025-54135, CVE-2025-54136 and CVE-2025-59944) describe ways such files could be created or altered to run commands on a developer’s machine, fixed in Cursor versions 1.3.9, 1.3 and 1.7.
Rules files that steer every change
Cursor’s documentation says rule contents are included at the start of the model context. A rules file copied from a template or another project shapes all the code that follows, and the same page says AI guidance should not be your only security control.
Guardrails treated as a boundary
Cursor describes its run modes as best-effort guardrails and not a hard security boundary, and says its ignore file cannot stop terminal or MCP tools from reading a file. A team that relied on either may have exposed more to the agent than it intended.
Our checks
What do we check in a Cursor app?
- 01
The full Git history for secrets
We scan every branch and every past commit for keys, tokens and passwords, and list each one with the provider it belongs to so it can be rotated.
- 02
Authorisation on every route
We map each endpoint, server function and background job, then test whether one test user can read or change another test user’s records.
- 03
The data layer’s own rules
Where the app uses Supabase we test row level security on every table. Where it uses another database we check how the server limits each query to the caller’s data.
- 04
Dependencies and the lockfile
We check each package against published advisories, look for abandoned or lookalike packages and confirm the lockfile matches what is deployed.
- 05
The .cursor folder and agent instructions
We read the rules files, AGENTS.md and any MCP configuration in the repository, and check which outside tools the agent was allowed to run.
- 06
Cursor versions on the team’s machines
We compare the versions in use with the fixed versions named in Cursor’s published advisories.
- 07
Hosting, environment variables and the pipeline
We review where secrets are stored in the hosting account, who can deploy and what the build pipeline can reach.
- 08
Sign-in, limits and what leaves for AI providers
We test account recovery and rate limits, and check what code and customer data are sent to model providers, including whether Privacy Mode is on.
Check it yourself
What can you check in your Cursor app today?
- 01Read the secret scanning alerts on your repositoryIf your code is on GitHub, read its secret scanning alerts. GitHub runs secret scanning free on public repositories, and it reads the whole history and not only the latest code.
- 02Rotate any key that was ever committedGitHub’s guidance is to revoke or rotate the secret first. Deleting the line or rewriting history does not make an exposed key safe.
- 03Update Cursor on every machineAsk each developer which version they are running and update to the current release. The published advisories were fixed by version 1.7.
- 04Read the .cursor folder in your repositoryOpen the rules files and any mcp.json file. Remove any tool or instruction that nobody on the team can explain.
- 05Test with two accounts of your ownCreate two test accounts in your app. Sign in as one, copy the address of a record, then sign in as the other and open it.
- 06Run your package manager’s auditRun the audit command for your package manager, such as npm audit, and read the high and critical results.
Run these on your own app only. The full pre-launch security checklist covers every area, for any tool.
Questions
Questions about reviewing a Cursor app.
Do we have to rebuild an app written with Cursor?
Rarely. The usual result is a list of targeted fixes, such as keys rotated, authorisation checks added to named endpoints and a few packages replaced. If a rebuild is the honest answer we will say so in the report and explain why.
Cursor is an editor. What is there to review?
The code it helped write and the configuration it left behind. Cursor does not pick your stack or hosting, so the risks are in what was accepted, which is why we read the repository, its history and its agent settings as well as the running app.
Is Cursor now called Grok Build?
Cursor’s own site says Cursor is now Grok Build, and its documentation is published at docs.grok.com. The project files keep the .cursor names, so the review is the same whichever name your team uses.
Do the Cursor advisories mean our app was compromised?
Not by themselves. They describe ways a developer’s machine could be made to run commands through agent configuration files, and each was fixed in a named version. We check the versions in use and the configuration in your repository, and say plainly if anything needs a closer look.
Is the review a penetration test?
No. It is an engineering-led review of your code, repository and configuration, with every finding reproduced. It is not a certification. If a customer or investor needs a certified penetration test we will say so and work alongside the firm you choose.
The review, and what follows it
Sources
- Agent security, Cursor (Anysphere)
- Rules, Cursor (Anysphere)
- Model context protocol (MCP), Cursor (Anysphere)
- Ignore file, Cursor (Anysphere)
- Security, Cursor (Anysphere)
- CVE-2025-54135, CVE Program (GitHub)
- CVE-2025-54136, CVE Program (GitHub)
- CVE-2025-59944, CVE Program (GitHub)
- Secret scanning, GitHub
- Row Level Security, Supabase
- Removing sensitive data from a repository, GitHub
- A01 Broken Access Control, OWASP Top 10 2025, OWASP Foundation
About Rare Agentics
- What we do
- We are a UK software and AI agent engineering firm. We build bespoke software, custom AI agents and operating platforms, and run security reviews of apps built with AI coding tools.
- Who for
- Founders and growing businesses across the United Kingdom, in any sector, from a London base.
- How we price
- Scoping is free, every piece of paid work has a fixed price in writing before it starts, and a proof sprint starts from £3,000.
- How we control agents
- Senior engineers lead every build and AI agents do the heavy lifting. Agents cannot reach production, and a person signs off every release.
- Where code lives
- Your code lives in your repositories and your data in your cloud accounts from the first commit.
Send a brief
Send us your Cursor app. We will tell you what we would check first.
Send a brief. It does not need to be technical. Within two working days you get a first view, and within a week a written plan, a fixed price and the risks.