Your source code published by accident
Source maps are files that turn your minified JavaScript back into your original, readable code. If they're deployed, anyone can download your source with its comments, internal routes and logic. The fix: turn them off for production builds, or upload them privately to your error tracker and keep them off your site.
Where it shows up: Vite, Next.js and most bundlers
Are you affected? The 60-second check
Open your live site, then DevTools → Sources. If you see your original folders (src/components/...) under your domain, the maps are public.
Or take a JavaScript file your site loads and ask for its .map:
404 is good. 200 means anyone can download your source.
What it is
Build tools compress your code for the browser and can also produce source maps: files that map it back to your original source. They're meant for debugging.
If they're deployed, anyone can download your original code, including comments, internal routes and logic you'd rather not publish.
How often we see it
We ran Shippable's static checks on about 25,000 public GitHub repos built with five AI tools (October 2026). Each figure is the share of that builder's repos where the check fired at least once. A dash means we saw it in under 1% of that builder's repos. Full method and breakdown: Which AI builder ships the safest apps?

What an attacker sees
Readable source makes every other weakness easier to find: hidden admin routes, unfinished features, and the exact checks your app does and doesn't make.
How to fix it
Paste this into your AI tool:
My production build is serving JavaScript source maps (.map files) publicly, which exposes my original source code. Disable source maps in production (Vite: build.sourcemap: false; Next.js: productionBrowserSourceMaps: false), or make sure .map files are excluded from the deployed output, then redeploy.
Or by hand:
- Turn source maps off for production builds. In Vite set build.sourcemap to false; Next.js keeps them off unless productionBrowserSourceMaps is on.
- If you need them for error tracking, upload them privately to that service instead.
- Redeploy and re-scan.
Vite (Lovable, Bolt)
build.sourcemap is off by default. Check vite.config for sourcemap: true and remove it, or set it only for development.
Next.js (v0, Cursor)
Browser source maps are off unless productionBrowserSourceMaps: true is in next.config. Remove it.
Error trackers (Sentry and similar)
Upload maps during the build and configure the plugin to delete them afterwards, so they never reach your host.
Mistakes that look fixed but aren't
- sourcemap: 'hidden' in Vite. It removes the link from your JavaScript, but the .map files are still deployed and can be downloaded by name.
- Turning maps off in the build but redeploying an old output folder that still has them.
Check your app
Shippable looks at the JavaScript files your site already serves and checks whether their source maps can be downloaded.
This check depends on your host, so scan your deployed app:
Or scan your live app in the browser:
FAQ
Are public source maps a vulnerability?
Not by themselves. They hand attackers a readable copy of your code, which makes every other weakness faster to find.
Can I block .map files at the host instead?
Yes. A rule that returns 404 for *.map works, but not generating them for production is simpler and harder to undo by accident.