All protections
CWE-540 · Source disclosure

How Stateward protects you against source map exposure

The threat

A JavaScript source map (.map) ships your original, unminified source — comments, internal endpoints, logic, sometimes secrets — to anyone who can fetch it or open a published package. Apple’s App Store front-end and Anthropic’s Claude Code both leaked their entire source this way.

How Stateward catches it

Stateward’s source-map detector flags it in the pull request, before it ever ships: a committed *.map artifact, a stray //# sourceMappingURL= in a shipped bundle, and build configs that emit production maps across Vite, webpack, Next.js, Create React App, Vue and Rollup. It skips disabled maps and .d.ts.map files, so it doesn’t cry wolf.

Source-map exposure detectorCWE-540CWE-200

Recent advisories of this class

Browse the full feed

Check your own repo for this

Connect a repo and Stateward reviews your next pull request — read-only, free for individuals and open source.

Built to be trusted with your code

Read-only & ephemeral

Stateward can comment, but never pushes, merges or stores your keys.

EU-sovereign hosting

Code and security data stay EU-hosted via Citadea — built for NIS2, DORA and the CRA.

Whole-codebase aware

Reasons over your call graph and trust boundaries, not just the diff.

Stateward is in beta and onboarding design partners. Built by Yggdrasil Digital.