Security mailing lists by PureSourceCode

CVE-2023-23608

MEDIUM 4.3CVSS 3.1

Path 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD spotipy_project spotipy
cpe:2.3:a:spotipy_project:spotipy:*:*:*:*:*:*:*:*
< 2.22.1 2.22.1
OSV PyPI spotipy < 2.22.1 2.22.1

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.