# Security review for v0 apps on Vercel

> Rare Agentics is a UK software and AI agent engineering firm that reviews apps built with v0. We check first that every server action and route handler confirms who is calling and what they own, and that no secret carries the NEXT_PUBLIC prefix. Every finding is reproduced and ranked in a written report. A review takes 1 to 3 weeks.

Source https://rareagentics.com/security-review-for-ai-built-apps/v0. Last reviewed 2026-12-04.

## What does v0 set up for you?

v0 is made by Vercel. It generates code with Next.js, React, Tailwind and shadcn/ui, and deploys it to Vercel in one click. Environment variables are stored with the Vercel project, and server-side code runs as Functions.

## Where do apps built with v0 usually go wrong?

- **Server actions with no check inside.** The Next.js documentation says a server action is reachable by a direct POST request and not only through your pages, and that a page-level sign-in check does not extend to the actions defined within it. An action that deletes a record without checking the caller can be called by anyone who finds it.
- **Route handlers that trust the identifier.** A handler that loads a record by the identifier in the address and returns it has checked nothing about ownership. Changing the identifier returns someone else’s record.
- **Secrets with the NEXT_PUBLIC prefix.** Next.js inlines any variable that starts with NEXT_PUBLIC_ into the JavaScript sent to the browser. Vercel has written that language models misuse this by placing database credentials and API keys in public variables.
- **Authorisation that lives only in middleware.** A single check in middleware looks tidy and leaves every action and handler unprotected if it is bypassed. CVE-2025-29927 allowed exactly that bypass in Next.js versions before 12.3.5, 13.5.9, 14.2.25 and 15.2.3.
- **Whole records sent to the browser.** Passing a full database row to a client component, or returning it from a server action, sends every field to the browser, including the ones the page never shows. The Next.js documentation recommends returning only the fields the page needs.
- **No limit on expensive routes.** Vercel offers rate limiting through its firewall, but a rule has to be created for it. A sign-up form, an email sender or an AI route with no rule can be called as fast as a script can run, at your cost.

## What do we check in a v0 app?

1. **Every server action, called directly.** We list each action in the build and call it outside the interface as a visitor and as two test users, checking authentication, ownership and input validation in each.
2. **Every route handler and dynamic segment.** We test each handler and each bracketed folder with identifiers that belong to another test user and with malformed input.
3. **Environment variables in Vercel and in the bundle.** We read the list of variables in the Vercel project, flag any secret with the public prefix and search the built JavaScript for key material.
4. **Next.js and React versions.** We check the versions the app ships against published advisories, including the middleware bypass in CVE-2025-29927 and the React Server Components flaw in CVE-2025-55182.
5. **What crosses from server to client.** We read the props of client components and the return values of actions for fields that should stay on the server.
6. **The database behind the app.** We review how the app reaches its database, whether access goes through one server-only layer and, where it uses Supabase, the row level security on every table.
7. **Deployment protection and preview links.** We check which deployments are protected and who holds shareable links. Vercel’s Standard Protection covers every deployment except production domains.
8. **Firewall rules and rate limits.** We check which firewall rules exist and whether sign-in, forms and AI routes have a limit.

## What can you check in your v0 app today?

1. **Read your environment variable names in Vercel.** Open the project settings and read every name that starts with NEXT_PUBLIC_. Each one is visible to every visitor, so none should hold a secret key, a database address or a token.
2. **Rotate anything that was public.** If a secret did carry the public prefix, create a fresh key with the provider first, then rename the variable and redeploy.
3. **Check your Next.js version.** Open package.json and confirm the Next.js version is a current release, later than the fixed versions for CVE-2025-29927.
4. **Ask v0 to run its security check.** On a paid plan, ask v0 in chat to run DeepSec and read the confirmed findings. It reviews the riskiest files and not every file in a larger project.
5. **Test with two accounts of your own.** Create 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.
6. **Add a rate limit rule in the Vercel firewall.** Open Firewall in your project, create a rule for your most expensive route with the Rate Limit action and start it in Log mode to watch the effect.

## Questions

### Do we have to rebuild our v0 app?

Rarely. Most v0 apps need targeted fixes such as a check added inside each action, variables renamed and rotated, and a rate limit rule. If a rebuild is the honest answer we will say so in the report and explain why.

### Vercel says v0 blocks insecure deployments. Is that not enough?

It helps, and it catches exposed secrets in particular. It cannot know your business rules, such as which user owns which record. The Next.js documentation tells developers to verify authentication and authorisation inside every server action, and that is what we test by hand.

### Is a secret safe if it only appears in a server action?

A variable without the public prefix stays on the server. The risk moves to what the action returns and who can call it, since Next.js treats each action as reachable by direct request.

### Our preview links are protected. Is production protected too?

Not by that setting. Vercel’s Standard Protection covers all deployments except production domains, which is the intended behaviour for a public site. Your own sign-in and authorisation checks are what protect production data.

### Is the review a penetration test?

No. It is an engineering-led review of your code, configuration and hosting set-up, 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.

## Sources

1. [Security](https://v0.app/docs/security), Vercel (v0 documentation)
2. [DeepSec](https://v0.app/docs/security-check), Vercel (v0 documentation)
3. [What is v0?](https://v0.app/docs), Vercel (v0 documentation)
4. [v0 vibe coding, securely](https://vercel.com/blog/v0-vibe-coding-securely), Vercel
5. [How to think about data security in Next.js](https://nextjs.org/docs/app/guides/data-security), Vercel (Next.js documentation)
6. [Row Level Security](https://supabase.com/docs/guides/database/postgres/row-level-security), Supabase
7. [How to use environment variables in Next.js](https://nextjs.org/docs/app/guides/environment-variables), Vercel (Next.js documentation)
8. [Deployment Protection on Vercel](https://vercel.com/docs/deployment-protection), Vercel
9. [WAF Rate Limiting](https://vercel.com/docs/vercel-firewall/vercel-waf/rate-limiting), Vercel
10. [CVE-2025-29927](https://www.cve.org/CVERecord?id=CVE-2025-29927), CVE Program (GitHub)
11. [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182), CVE Program (Meta)
12. [A01 Broken Access Control, OWASP Top 10 2025](https://top10.owasp.org/2025/A01_2025-Broken_Access_Control), OWASP Foundation

---

Rare Agentics is a UK software and AI agent engineering firm based in London. Rare Agentics Limited, company number 17494524. Contact hello@rareagentics.com or https://rareagentics.com/contact. Book a call at https://rareagentics.com/book-a-call.
