Skip to main content
VulnerabilityPublished Updated

CVE-2025-27154: Spotipy · The CacheHandler class creates a cache file to store the auth token

Affects spotipySource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.

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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Feb 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=stonkingOther threatsAffected
  • =2.25.2-1
  • =2.26.0-1
Fixed in–
Ubuntu 26.04 LTSspotipypkg:deb/ubuntu/spotipy?arch=source&distro=resoluteOther threatsAffected
  • =2.25.1-1
  • =2.25.2-1
Fixed in–
Ubuntu 25.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=questingOther threatsAffected
  • =2.25.1-1
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

Community reviews

Loading reviews…