LS-MAPBOX-001: Mapbox Token¶
| Severity | HIGH |
| Blast radius | API usage and billing abuse |
| Rotate at | https://account.mapbox.com/access-tokens/ |
If this leaks¶
If a secret-scoped token, allows managing styles, datasets, and uploads, and can be used to incur usage charges against the account.
What to do¶
- Rotate or revoke the credential at https://account.mapbox.com/access-tokens/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
pk\.eyJ[A-Za-z0-9+/=._-]{40,}\.[A-Za-z0-9_-]{20,}
Suppress¶
On one line: # leakscan:ignore LS-MAPBOX-001. For the whole project:
disable_rules: [LS-MAPBOX-001]