Please report security problems privately, not in a public issue, discussion or pull request.
Use GitHub's private vulnerability reporting: open the repository's Security tab and choose Report a vulnerability (or go straight to the report form). Only the maintainers can see the report.
Please include:
- what an attacker could do, and what they need first (a malicious web page, a crafted Spotify data export, a hostile playlist name, local access...);
- the steps to reproduce it, or a proof of concept;
- the Statsify version, and whether it affects the desktop app (which OS) or the web build.
Never include real access tokens, refresh tokens or anyone's listening history in a report.
Statsify is maintained by volunteers. We aim to acknowledge a report within a week, keep you informed while we work on a fix, and credit you in the advisory unless you would rather we didn't. Please give us a reasonable time to release a fix before you disclose the problem.
Security fixes go into the latest release. Please check that a problem still happens there before reporting it.
In scope, for example:
- the desktop app's sign-in listener on
127.0.0.1:43821, its commands (IPC), capabilities and Content Security Policy (src-tauri/); - the handling of Spotify tokens, the PKCE sign-in and its
statechecks; - parsing of Spotify data exports (zip and JSON) and of lyrics from LRCLIB;
- rendering of data from Spotify or LRCLIB (track, playlist and artist names, links);
- secrets leaking into the developer log or its exports;
- the release workflow and supply chain (
.github/workflows/).
Out of scope:
- Spotify's own services and the Spotify app;
- the Spotify Client ID being visible: it is a public identifier by design, and Statsify has no client secret;
- attacks that need an already compromised computer or user account (for example reading
localStorageor the history database with the user's own permissions); - denial of service by flooding Spotify's or LRCLIB's APIs.
- No backend and no telemetry: your tokens, settings and listening history stay on your device.
- Spotify's access and refresh tokens are kept in the app's own
localStorage, because there is no server to hold them (standard for a PKCE app). The desktop app also keeps a copy of its storage inapp-state.jsonin its local data folder (never the roaming one on Windows), readable only by your user account, so a shutdown or update that ends the app abruptly doesn't sign you out; the developer log records only which keys it saved, never their values. Only Statsify's own origin can read them; the Content Security Policy allows no outside scripts and the app never renders data as HTML. Keeping them in the OS keychain instead is on the roadmap. - Sign-in uses the OAuth Authorization Code flow with PKCE only; there is no client secret. It
asks Spotify only for the permissions its features use (
SCOPESinapp/spotify/auth.ts): to read your profile, top items, recently played, library, playlists and followed artists; to see and control playback; and to create private playlists, add songs to your own and collaborative playlists, and like songs. Playlists it creates are private, and it never removes or reorders anything in an existing playlist. The browser build also asks for the two permissions Spotify's Web Playback SDK requires (streaminganduser-read-email); Statsify never reads the email address. - You can revoke Statsify's access at any time on Spotify's Manage apps page.
- The desktop sign-in listener binds the loopback interface only, accepts nothing but
GET /callbackwith the expectedstateand a loopbackHostheader, closes after the first such callback, and stops waiting after five minutes. - The desktop window gets least-privilege Tauri capabilities and a strict Content Security
Policy; the web build ships a CSP that allows its one inline script by hash, and refuses to run
inside another site's frame (clickjacking). If you host the web build, also send
Content-Security-Policy: frame-ancestors 'none'as a response header if your host allows it. - The developer log masks tokens, authorisation codes, PKCE verifiers and Authorization headers before anything is recorded, and is emptied when a signed-in session ends.
More detail is in AGENTS.md.