spotipy: Spotipy is a lightweight Python library for the Spotify Web API
CVE-2025-27154 is fixed in spotipy on 1 platform, first by DEBIAN-CVE-2025-27154, released February 27, 2025. It is not reported as exploited. Patch Radar priority: Urgent.
Spotipy is a lightweight Python library for the Spotify Web API. The `CacheHandler` class creates a cache file to store the auth token. Prior to version 2.25.1, the file created has `rw-r--r--` (644) permissions by default, when it could be locked down to `rw-------` (600) permissions. This leads to overly broad exposure of the spotify auth token. If this token can be read by an attacker (another user on the machine, or a process running as another user), it can be used to perform administrative actions on the Spotify account, depending on the scope granted to the token. Version 2.25.1 tightens the cache file permissions.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| spotipy · Debian 13.5 (trixie) | 2.25.1-1 | DEBIAN-CVE-2025-27154 | Feb 27, 2025 |
| spotipy · Debian 14 | 2.25.1-1 | DEBIAN-CVE-2025-27154 | Feb 27, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.