SecurityContext

CVE-2023-23608: Spotipy - Path Traversal

  • Cve: CVE-2023-23608
  • Name: Spotipy - Path Traversal
  • 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.
  • Impact: Attackers can redirect API requests to unintended endpoints, potentially leading to data exposure or manipulation depending on client operations.
  • Remediation: Update to version 2.22.1 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Epss score: 0.0069
  • Epss percentile: 0.5355
  • Assignee: [email protected]
  • Published at: 2023-01-26T21:18:13Z
  • Age in days: 1398
  • Modified at: 2026-06-17T05:37:34Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-23608
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555vnvd2023-01-26

References

UrlSourceTags
https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555vnvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
spotipy_project:spotipy< 2.22.1nonvd/v1/products/spotipy_project/spotipy

Projects

RepositoryLink kindsIndexedUrl
spotipy-dev/spotipypackage, security_advisoryyes/v1/repositories/spotipy-dev/spotipy

Index

  • Repositories: 6
  • Repositories high signal: 4
  • Checked, none or zero: packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-01-26
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts