What are source maps, and are public source maps a risk?

Source maps are .map files that map minified JavaScript back to its original source. Served publicly in production, they expose your full front-end code.

Free · no signup · passive checks only · results in about a minute

A source map is a .map file that connects minified, bundled JavaScript back to the original source files, so developer tools can show readable code and useful stack traces.

A bundle references its map with a comment at the end:

//# sourceMappingURL=main.4f2a.js.map

Why public source maps are a risk

If the map is publicly served, anyone can rebuild your original front-end source code, including comments, internal API routes, feature flags and any values that were hard-coded. It is not a vulnerability by itself, but it makes every other mistake easier to find.

What to do

Disable production source maps, or upload them privately to your error-tracking service instead of deploying them alongside your JavaScript.