CVE-2023-23608
MEDIUM 4.3CVSS 3.1Path traversal in spotipy
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.
- Published
- 26 Jan 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-q764-g6fm-555vPYSEC-2026-926
- Sources
- NVDJSONOSV GHSA-q764-g6fm-555vJSONOSV PYSEC-2026-926JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | NONE 0.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | spotipy_project | spotipycpe:2.3:a:spotipy_project:spotipy:*:*:*:*:*:*:*:* |
< 2.22.1 | 2.22.1 |
| OSV | PyPI | spotipy | < 2.22.1 | 2.22.1 |
References
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-23608 · ADVISORY
- https://github.com/spotipy-dev/spotipy · PACKAGE
- https://pypi.org/project/spotipy · PACKAGE
- https://github.com/advisories/GHSA-q764-g6fm-555v · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Jan 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Jan 2023)