CSACyber Security AuditWebbandflow
Information disclosure Low

Source Map Exposure

Publishing developer source maps that reveal the original, readable source of compiled web code.

What it is

Source maps are developer aids that map compressed, hard-to-read production code back to the original, well-structured source. When left accessible on a public site, they let anyone reconstruct the original source code, including comments and structure. This can reveal internal logic, endpoints, or secrets left in the code.

Why it matters

Exposed source maps hand attackers a readable copy of your front-end code, making it far easier to find weaknesses or embedded secrets.

How to fix it

Do not deploy source maps to production, or restrict access to them, and avoid placing secrets in front-end code.

Related terms

References

← Back to the glossary