# CVE-2025-27154: Spotipy's cache file, containing spotify auth token, is created with overly broad permissions

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 55% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-27T13:53:54.161Z
- Modified: 2026-09-10T03:50:22.838Z
- Also known as: GHSA-pwhh-q4h6-w599, PYSEC-2026-1936
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- spotipy-dev spotipy: < 2.25.1
- spotipy (PyPI): before 2.25.1
- spotipy_project spotipy: before 2.25.1

## Every score

- GitHub_M: CVSS:4.0 8.4 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599> (exploit, vendor-advisory, web)
- <https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2> (patch, web)
- <https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98> (product, web)
- <https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27154> (advisory)
- <https://github.com/spotipy-dev/spotipy> (package)
- <https://pypi.org/project/spotipy> (package)
- <https://github.com/advisories/GHSA-pwhh-q4h6-w599> (advisory)

## Sources

- CVE List: [CVE-2025-27154](https://www.cve.org/CVERecord?id=CVE-2025-27154), CVE Terms of Use, modified 2025-02-27
- GitHub Advisory Database: [GHSA-pwhh-q4h6-w599](https://github.com/advisories/GHSA-pwhh-q4h6-w599), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-27154](https://nvd.nist.gov/vuln/detail/CVE-2025-27154), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1936](https://osv.dev/vulnerability/PYSEC-2026-1936), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-27154 · Whole record: https://cve.day/CVE-2025-27154.json · Rebuilt by cve.day 2026-11-25T22:58:54.584Z
