CVE-2025-27154
published high CVSS 4.0 · 8.4Spotipy's cache file, containing spotify auth token, is created with overly broad permissions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| spotipy-dev | — | spotipy< 2.25.1 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-spotipyaarch64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-spotipyppc64le | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-spotipys390x | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-spotipyx86_64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-spotipyaarch64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-spotipyppc64le | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-spotipys390x | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-spotipyx86_64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-spotipyaarch64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-spotipyppc64le | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-spotipys390x | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-spotipyx86_64 | Advisory build | 2.25.1-1.1 | OPENSUSE-SU-2025:14847-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| spotipy-dev | spotipy | < 2.25.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-276 CWE-276: Incorrect Default Permissions
References
4- https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98
- https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2
- https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599
Provider assertions
2GitHub_M · cna
Spotipy's cache file, containing spotify auth token, is created with overly broad permissions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a51a8dbbccdb82bf8383913d040fb797f738a66cb1362216f7d408a505a31f5a
- Ingested
- 23 Sep 2026, 08:42:34 UTC
- Source record
- Official CVE record