# Worried about a Vercel security breach? Check and lock down your project

By Mark Kashef, founder of Lockpick. Published 2026-12-03, updated 2026-12-03.

Worried about a Vercel security breach? Rotate your bypass secret, tighten Deployment Protection, block access with WAF rules and check your live site.

If you're worried a Vercel security breach reached your project, start with the settings you control today. Regenerate your Protection Bypass for Automation secret, review who can get past Deployment Protection, block anyone who shouldn't with a WAF rule, and check what your live site shows strangers.

Do this whatever the details of the incident turn out to be. Keep [Vercel's Deployment Protection docs](https://vercel.com/docs/deployment-protection) open while you work through it.

## What is the risk to a Vercel project?

Vercel Authentication restricts access to only Vercel users with suitable access rights. All Deployments restricts public access, but Deployment Protection still admits requests that pass its checks.

Requests that carry a valid Protection Bypass for Automation secret skip the Password Protection, Vercel Authentication, and Trusted IPs checks. Each secret works on all deployments in the project until you revoke it. Other bypass methods can also let requests through.

After breach news, ask yourself two questions. Could someone else now hold your bypass secret? Does anyone still have access to your Vercel team who shouldn't?

Vercel sets the secret as the VERCEL_AUTOMATION_BYPASS_SECRET environment variable when it builds a deployment. If your app code reads that variable anywhere a browser can see it, treat the secret as exposed.

Your other secrets count too. If your Vercel project holds API keys or database service keys in environment variables, plan to rotate those as well. Before you rotate Supabase keys, read [which Supabase key is meant to be public](/blog/supabase-anon-key-vs-service-role-key) so you only replace the ones that need it.

## How do I check?

Start in the Vercel dashboard, then look at your site from outside.

1. Open your project's Deployment Protection settings and note the protection level and method. When setting a team default, you choose the protection level (All Deployments, Standard Protection, or None) and a method such as Vercel Authentication, Passport, or Password Protection.
2. Check whether the project has a Protection Bypass for Automation secret, and list every CI job or test tool that uses it.
3. Review your team members. With Vercel Authentication, Vercel users with suitable access rights can open protected URLs.
4. Open your project's WAF custom rules and confirm they shut out everyone who shouldn't get in today.
5. Search your code for `VERCEL_AUTOMATION_BYPASS_SECRET` and confirm only server, CI or test code reads it.
6. Check your live site from outside. Lockpick checks your site from the outside, the way a stranger or an attacker would find it. A Pulse sends at most 12 requests to your site and a Deep scan at most 200. Lockpick also checks whether two files that should never be public, /.env and /.git/HEAD, can be downloaded. A finding is only reported with the evidence that shows it.

Every scan starts with your confirmation that you own the site or are allowed to test it. If a scan turns up an exposed file, the [.env file guide](/blog/env-file-publicly-accessible) walks through the fix.

[Check your site](https://www.lockpick.app/check)

## How do I fix it?

Work through these in order, starting with the secret.

1. Replace the bypass secret. To stop requests that use a Protection Bypass for Automation secret, regenerate or delete the secret in your project settings. Regenerating or deleting it also breaks automation that uses the old value, such as CI or end-to-end tests. Put the new value into your CI settings. Redeploy to use the new secret.
2. Tighten Deployment Protection. When you enable Standard Protection, the production generated deployment URL becomes restricted. Update any fetch requests that use VERCEL_URL or VERCEL_BRANCH_URL to target the same domain the user requested, since those variables will no longer be publicly accessible. Vercel Authentication for All Deployments and Deployment Protection Exceptions do not require a paid add-on.
3. Block people who still pass Vercel Authentication. To block requests from users who pass Vercel Authentication, add a Web Application Firewall (WAF) custom rule with the Deny action. When a request matches a rule with the Deny action, Vercel returns a 403 Forbidden response and the request doesn't reach your application. WAF custom rules are available on all plans, and a rule change takes effect as soon as you publish it from Review Changes, without a redeploy. Then remove anyone from the team who no longer needs access.
4. Rotate the other secrets in your environment variables. Start with any key that can write data or spend money. Issue a new key with the provider, update it in Vercel, redeploy, then revoke the old one. If a key ever appeared in browser code, read [API key exposed in the frontend](/blog/api-keys-in-your-javascript-bundle) as well.
5. Protect source maps if you ship them. Protected Source Maps gates .map file requests behind Vercel Authentication, so you can ship browser source maps to production without exposing source code. Read the [public source maps check](/checks/source-map) page too.
6. Check again once the redeploy is live, and compare the result with the scan before.

If you built the app with v0 or edit it with a coding assistant, paste one of these prompts to handle the code side. The [v0 app security guide](/guides/v0) covers the rest of the defaults.

:::fix-prompt v0
In this Next.js project, find every place that reads VERCEL_AUTOMATION_BYPASS_SECRET. Make sure it is only read in server code, CI configuration or end-to-end test configuration, never in a client component and never in a variable whose name starts with NEXT_PUBLIC_. Then find every fetch call built from VERCEL_URL, NEXT_PUBLIC_VERCEL_URL or VERCEL_BRANCH_URL and change it to use a relative path or the domain of the incoming request. List each file you changed and why. Do not change any other behaviour.
:::

:::fix-prompt cursor
List every environment variable this app reads and mark which ones are used in code that runs in the browser. For each secret key used in browser code, move the call into a server route that reads the key from process.env and answers 401 to callers who are not signed in, then update the browser code to call that route. Do not print any secret values in your answer. Finish with a list of the keys I should rotate with each provider.
:::

:::fix-prompt claude-code
Search the repository for VERCEL_AUTOMATION_BYPASS_SECRET, VERCEL_URL, NEXT_PUBLIC_VERCEL_URL and VERCEL_BRANCH_URL. Report every file that uses them and whether that code runs on the server, in CI or in the browser. Move any browser use of the bypass secret out of browser code. Change fetch calls that build URLs from the Vercel URL variables so they target the same domain the user requested. Show me the diff before committing and do not print secret values.
:::

## What a check cannot tell you

Lockpick never signs in to your site and never looks at anything behind a login. It only looks at what anyone on the internet can see, so your Vercel dashboard, team list, environment variables and bypass secrets are outside its view. You have to review those yourself, using the steps above.

Anything a scan couldn't check is marked as not checked, never as passed. A scan stops early if your site slows down, fails or refuses. If Deployment Protection turns a scan away from a URL, read that URL as not checked rather than safe.

A Lockpick report is not a certificate and not a full penetration test. It covers what that scan could see on that day.

Don't read a clean scan as proof that nobody used a leaked secret, and don't read a missing security header as proof that someone got in. For more on the limits Lockpick keeps to, see [what Lockpick never does](https://docs.lockpick.app/security/what-we-never-do).

## Questions people ask

### Does a Vercel breach mean my site was hacked?

Don't assume either way. Replace your Protection Bypass for Automation secret, review who has access to your team, and check your live site from outside. A Lockpick report covers what that scan could see on that day, not what happened inside your Vercel account.

### Will regenerating the bypass secret break my deploys?

Regenerating or deleting the secret also breaks automation that uses the old value, such as CI or end-to-end tests. Put the new value into your CI settings, then redeploy so your deployments use the new secret.

### Do I need a paid Vercel plan to lock things down?

Vercel Authentication for All Deployments and Deployment Protection Exceptions do not require a paid add-on. WAF custom rules are available on all plans.

### Can Lockpick see my Vercel settings or secrets?

No. Lockpick never signs in to your site and never looks at anything behind a login. Review your Deployment Protection settings, team members and environment variables in the Vercel dashboard yourself.

## Sources

- [Deployment Protection on Vercel](https://vercel.com/docs/deployment-protection), Vercel docs, read on 2026-12-03
- [How we check · Docs · Lockpick](https://docs.lockpick.app/security/how-we-check), Lockpick docs, read on 2026-11-04
- [What we never do · Docs · Lockpick](https://docs.lockpick.app/security/what-we-never-do), Lockpick docs, read on 2026-10-29
