Highlights
Incorrect Privilege Assignment: 1 prior fix. Scrutinize any change in this area.
spotipy.cache_handler: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Incorrect Privilege Assignment: The CacheHandler created cache files with overly broad default permissions, allowing other local users to read sensitive Spotify authentication tokens. This was fixed by restricting permissions to owner-only read/write (0600).
Path Traversal: Improper parsing of Spotify URIs and URLs allowed attackers to supply malicious identifiers containing path traversal sequences, potentially redirecting API requests to arbitrary endpoints.
Reflected XSS: The local OAuth callback server rendered unescaped error messages directly in the HTTP response, exposing the user to Reflected Cross-Site Scripting (XSS). This was resolved by HTML-escaping the error payload.