CVE-2025-27154

HIGH CVSS 4.0: 8.4 EPSS 0.61%
Updated Apr 07, 2025
Spotipy_Project
Parameter Value
CVSS 8.4 (HIGH)
Affected Versions before 2.25.1
Fixed In 2.25.1
Type CWE-276
Vendor Spotipy_Project
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Spotipy_Project Spotipy
cpe:2.3:a:spotipy_project:spotipy:*:*:*:*:*:*:*:*
— 2.25.1