# CVE-2025-27154: 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.

- Web page: https://patchblox.com/security/cve/CVE-2025-27154
- Priority: Urgent
- CVSS: 9.8 (critical)
- EPSS: 0.0061
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 27, 2025

## Description

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

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | spotipy Debian 13.5 (trixie) | 2.25.1-1 | [DEBIAN-CVE-2025-27154](https://patchblox.com/security/data/fix/linux/debian-cve-2025-27154.md) | Feb 27, 2025 |
| Linux | spotipy Debian 14 | 2.25.1-1 | [DEBIAN-CVE-2025-27154](https://patchblox.com/security/data/fix/linux/debian-cve-2025-27154.md) | Feb 27, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
