{"cve":"CVE-2025-27154","nvd":{"published":"2025-02-27T14:15:36.180","modified":"2026-06-17T09:03:06.787","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":8.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-276"],"references":["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","https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599"],"products":["spotipy_project:spotipy"],"source":"nvd","synced_at":"2026-10-19T21:59:48.811064707+00:00"},"epss":{"cve":"CVE-2025-27154","score":0.00611,"percentile":0.49248,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-pwhh-q4h6-w599","url":"https://osv.dev/vulnerability/GHSA-pwhh-q4h6-w599","summary":"Spotipy's cache file, containing spotify auth token, is created with overly broad permissions","modified":"2026-09-10T03:50:22.838699542Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.25.1"],"fixed":["2.25.1"]}]},{"id":"PYSEC-2026-1936","url":"https://osv.dev/vulnerability/PYSEC-2026-1936","summary":"Spotipy's cache file, containing spotify auth token, is created with overly broad permissions","modified":"2026-07-07T17:47:58.812938980Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.25.1"],"fixed":["2.25.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}