Skip to content

LS-MAPBOX-002: Mapbox Secret Token

Severity HIGH
Blast radius API usage and billing abuse
Rotate at https://account.mapbox.com/access-tokens/
--verify GET https://api.mapbox.com/tokens/v2

If this leaks

Secret-scoped Mapbox tokens can manage styles, datasets and uploads and incur charges.

What to do

  1. Rotate or revoke the credential at https://account.mapbox.com/access-tokens/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

\bsk\.eyJ[A-Za-z0-9+/=._-]{40,}\.[A-Za-z0-9_-]{20,}

Suppress

On one line: # leakscan:ignore LS-MAPBOX-002. For the whole project:

disable_rules: [LS-MAPBOX-002]