Skip to content

LS-DB-015: Upstash Redis Token

Severity HIGH
Blast radius Cache/queue data compromise
Rotate at https://console.upstash.com/

If this leaks

Allows reading and writing every key in the Upstash database over its REST API.

What to do

  1. Rotate or revoke the credential at https://console.upstash.com/.
  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

(?i)(?:upstash)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?(A[A-Za-z0-9_\-]{50,}=?)(?![A-Za-z0-9])

Suppress

On one line: # leakscan:ignore LS-DB-015. For the whole project:

disable_rules: [LS-DB-015]