Live threats

All CVEs / Spotipy Project

CVE-2023-23608Spotipy Project Spotipy

Medium 4.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Spotipy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
spotipy_projectspotipy< 2.22.1

Official sources

References

Links published by the sources. Open them with care.