CVE-2025-27154

Public Exploit
Spotipy's cache file, containing spotify auth token, is created with overly broad permissions

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.

Category

8.4
CVSS
Severity: High
CVSS 4.0 •
CVSS 3.1 •
EPSS 0.05%
Vendor Advisory github.com
Affected: spotipy-dev spotipy
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-27154?
CVE-2025-27154 has been scored as a high severity vulnerability.
How to fix CVE-2025-27154?
To fix CVE-2025-27154, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-27154 being actively exploited in the wild?
It is possible that CVE-2025-27154 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-27154?
CVE-2025-27154 affects spotipy-dev spotipy.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.