CVE-2025-27154: Spotipy · The CacheHandler class creates a cache file to store the auth token
Affects spotipySource GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 24 Nov 2026, 21:15 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSspotipypkg:deb/ubuntu/spotipy?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-27154 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-27154 (opens in a new tab)
- github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py (opens in a new tab)
- github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2 (opens in a new tab)
- github.com/spotipy-dev/spotipy/releases/tag/2.25.1 (opens in a new tab)
- github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599 (opens in a new tab)