{"cve":"CVE-2023-23608","nvd":{"published":"2023-01-26T21:18:13.963","modified":"2026-06-17T05:37:34.357","status":"Modified","description":"Spotipy is a light weight Python library for the Spotify Web API. In versions prior to 2.22.1, if a malicious URI is passed to the library, the library can be tricked into performing an operation on a different API endpoint than intended. The code Spotipy uses to parse URIs and URLs allows an attacker to insert arbitrary characters into the path that is used for API requests. Because it is possible to include \"..\", an attacker can redirect for example a track lookup via spotifyApi.track() to an arbitrary API endpoint like playlists, but this is possible for other endpoints as well. The impact of this vulnerability depends heavily on what operations a client application performs when it handles a URI from a user and how it uses the responses it receives from the API. This issue is patched in version 2.22.1.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3},"cwes":["CWE-22"],"references":["https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v","https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v"],"products":["spotipy_project:spotipy"],"source":"nvd","synced_at":"2026-10-19T21:37:34.931465858+00:00"},"epss":{"cve":"CVE-2023-23608","score":0.00658,"percentile":0.51511,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-q764-g6fm-555v","url":"https://osv.dev/vulnerability/GHSA-q764-g6fm-555v","summary":"Path traversal in spotipy","modified":"2026-09-10T03:49:51.557617217Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.22.1"],"fixed":["2.22.1"]}]},{"id":"PYSEC-2026-926","url":"https://osv.dev/vulnerability/PYSEC-2026-926","summary":"Path traversal in spotipy","modified":"2026-07-07T11:45:51.176510806Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.22.1"],"fixed":["2.22.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."]}