Paste the address of your deployed Next.js app. We read it the way a stranger's browser does: the page, the JavaScript chunks under /_next/static, and the Next.js version they reveal. Free, about 20 seconds, nothing to install.
Passive and read-only. Works with any public site, including apps built with Lovable, Bolt, v0, Replit, Base44, Cursor, Windsurf and Claude Code.
AppInspected
App
Waiting for your address
Checked
–
Critical issues
–
Not checked yet
Your result fills in this tag. Nothing is stored.
Results
The free check can't see these
They need a deeper look at your database rules or code. The website security report covers more of them.
Every Next.js app ships part of itself to the browser: the HTML, the JavaScript chunks under /_next/static/, and with the App Router, the Next.js version number. Anyone can open the developer tools and read all of it. That is normal, and it's why three mistakes are so common and so easy to find:
A secret with the NEXT_PUBLIC_ prefix. Next.js writes every NEXT_PUBLIC_ value into the browser JavaScript at build time. A Stripe secret key or OpenAI key with that prefix is public, whatever your hosting dashboard calls it: secrets in NEXT_PUBLIC_ variables.
An old Next.js version. App Router apps that were deployed and never rebuilt can still run a version with React2Shell (remote code execution, CVSS 10.0) or the December 2025 Server Components flaws: Next.js React2Shell check.
Source maps left on. Next.js doesn't publish browser source maps unless productionBrowserSourceMaps: true is set. When it is, anyone can download your original code: source maps exposed in production.
This check reads the deployed app from outside, at the address your users visit. It doesn't need your repo, your Vercel account or a package to install, and it works the same for apps written by hand or with v0, Cursor, Claude Code or Bolt.
What we check on a Next.js app
We load your page and follow up to 25 of its own scripts, including the chunks under /_next/static/, where any NEXT_PUBLIC_ value and inlined config end up.
Secret keys in the JavaScript chunks
Stripe secret and restricted keys, OpenAI, Anthropic and OpenRouter keys, AWS access keys, GitHub and Slack tokens, SendGrid, Resend and Twilio keys, private keys and database URLs with a password. Each finding links its fix: Stripe secret key exposed, OpenAI API key in your frontend, database URL exposed.
Next.js version
The App Router bootstrap includes the version number. Versions without the React2Shell fix (for example below 15.5.7 on the 15.5 line, or below 16.0.7 on 16.0) are critical; versions missing the December 11, 2025 fixes (below 14.2.35, 15.5.9 or 16.0.10, for example) are high. How to read it yourself: Next.js React2Shell check.
Supabase keys
If the app talks to Supabase, we decode its keys: the anon or publishable key is expected in the browser, a service_role or sb_secret_ key is critical: Supabase service_role key exposed.
/.env, /.git/HEAD, /.claude/settings.local.json, /.mcp.json and /.cursor/mcp.json, flagged only when they return real contents. Mostly a risk when the project folder itself is served: .env file exposed, .git folder exposed, API keys in .mcp.json.
A made-up app with secret keys in its JavaScript. Every finding links to a step-by-step fix and a prompt for your AI coding tool.
How to fix what the check finds
Rotate any leaked key first
Create a new key with the provider and turn the old one off. Removing it from the code isn't enough: copies of your old JavaScript are already out there.
Drop the NEXT_PUBLIC_ prefix from secrets
Rename the variable without the prefix, read it with process.env only in a Route Handler, Server Action or Server Component, and add import 'server-only' to modules that use it. Then build and deploy again: secrets in NEXT_PUBLIC_ variables.
Upgrade Next.js and redeploy
Upgrade to the patched release of your line and deploy. A firewall rule at your host isn't a complete fix. If your app was online and unpatched during React2Shell, rotate its secrets: Next.js React2Shell check.
Check every Server Action and Route Handler
Next.js documents that a Server Action can be called with a direct POST request, not only through your UI. Each one has to check who is signed in and whether that user may touch that record. A check on the page doesn't cover the actions in it.
Turn off production source maps
Remove productionBrowserSourceMaps: true from next.config.js, or upload maps to your error tracker instead of serving them: source maps exposed in production.
Add security headers
Next.js lets you set response headers in next.config.js (below). For a Content-Security-Policy with nonces, the Next.js docs use Proxy (the file formerly called Middleware) and dynamic rendering; without nonces, the header can go in next.config.js too.
Run the check again
Paste the same address above after you deploy. A clean result means none of these problems is visible from outside any more.
Paste this into Cursor, Claude Code, v0 or your tool of choice. Review the changes before you deploy.
Do a security review of this Next.js project and report back before changing anything. 1) List every environment variable whose name starts with NEXT_PUBLIC_ and say whether its value is meant to be public. For each secret (payment, AI provider, email, database, Supabase service_role keys), remove the prefix and move the code that uses it into a Route Handler or Server Action, with import 'server-only' in any module that reads it. 2) Tell me the exact next and react versions in package.json and whether they include the fixes for CVE-2025-66478 (React2Shell), the December 11, 2025 Server Components fixes and CVE-2025-29927 (middleware bypass); propose the upgrade. 3) In every Server Action and Route Handler, check that the user is signed in and may access the specific record, and return only the fields the UI needs. 4) Make sure productionBrowserSourceMaps is not true. 5) Add Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options and Referrer-Policy headers in next.config.js. Then apply the changes I approve, one at a time.
Self-hosting Next.js? One more check
In March 2025 Next.js disclosed CVE-2025-29927 (critical, CVSS 9.1): a request with the x-middleware-subrequest header could skip Middleware, so an app that checked logins only in Middleware could be opened without one. Per Next.js's advisory and Vercel's postmortem:
Affected: 11.1.4 up to 12.3.4, 13.0.0 up to 13.5.8, 14.0 up to 14.2.24 and 15.0 up to 15.2.2, when self-hosted with next start or output: 'standalone'.
Fixed in 15.2.3, 14.2.25, 13.5.9 and 12.3.5.
Not affected: apps hosted on Vercel, Netlify or Cloudflare Workers, and static exports (no Middleware without a server).
If you can't upgrade right away, block outside requests that carry the x-middleware-subrequest header before they reach Next.js.
The free check doesn't test for this one (it doesn't send attack requests). Check the next version in your package.json, and don't let Middleware be the only place that checks who is signed in: check again where the data is read.
What this check can't see
It doesn't read your server code, call your Server Actions or Route Handlers, look at your database rules, or try to break in. A clean result means none of the problems we check for is visible from outside; it isn't a full audit. The website security report reads much more of your app (up to 40 scripts across 30 pages, admin and paywall checks in the browser, prices sent to checkout, AI APIs called straight from the browser, libraries with known vulnerabilities) and gives fixes written for your host. If you built the app with v0, see the v0 security check for v0- and Vercel-specific settings.
Website security report
$19 one time
For any website you own: a read-only review of up to 30 pages and 40 JavaScript files (found through your build manifest, routes and sitemap), app logic in the browser (admin and paid-feature checks, prices sent from the browser, AI APIs called directly), headers, cookies and CORS, domain and email records, libraries with known vulnerabilities, forgotten files and third-party scripts, with fixes written for your host. Optional database tests for Supabase or Firebase. Requires proof you own the site.
We repeat the outside checks every day and email you when something changes: a new key in your JavaScript, a removed header, a new third-party script, a certificate about to expire. Includes a live badge and one full website report every 30 days.
Next.js keeps server code and environment variables on the server unless a variable starts with NEXT_PUBLIC_, and it ships security fixes quickly. An app is only as safe as where its keys live, whether its Server Actions and Route Handlers check who is calling, and whether it runs a patched version, so those are the things to check.
Can people see my Next.js source code?
They can read all the JavaScript that runs in the browser, including every NEXT_PUBLIC_ value, in minified form. Server Components, Route Handlers and Server Actions stay on the server. With productionBrowserSourceMaps turned on, the browser code can also be read in its original form.
How do I find which Next.js version a site runs?
On an App Router site, open the browser console and type next.version. Our free check reads the same value from the page's JavaScript and tells you whether that version needs the React2Shell or December 2025 fixes. See how to check a Next.js app for React2Shell.
Does the check work on Pages Router apps?
Yes for keys, source maps, files and headers. The version check covers App Router apps, because that is where React2Shell and the December 2025 flaws apply.
Do I need to install anything?
No. Paste your address. The check runs from our server against your public site, with ordinary GET requests, and doesn't need access to your code or hosting account.
Does it test my API routes or Server Actions?
No. The free check only reads what a browser receives. It can't see whether a Server Action checks who is signed in; that is what the fix steps above and the prompt for your AI tool are for.