CVE-2023-23608Spotipy Project Spotipy
Medium 4.3 No auth needed
Follow: this CVE · Spotipy Project · Spotipy Project Spotipy We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 4.3
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 48
- Auth required
- No
- Published
- Jan 26, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Spotipy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | spotipy |
< 2.22.1 |
2.22.1 |
pip install "spotipy>=2.22.1" |
| PyPI | spotipy |
< 2.22.1 |
2.22.1 |
pip install "spotipy>=2.22.1" |
Per OSV / GitHub Advisories (GHSA-q764-g6fm-555v, PYSEC-2026-926). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| spotipy_project | spotipy | < 2.22.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch Third Party Advisory