{"id":"CVE-2023-23608","published":"2023-01-24T02:39:32Z","modified":"2025-03-10T21:20:38Z","title":"spotipy Path traversal vulnerability that may lead to type confusion in URI handling code","vendor":"spotipy-dev","product":"spotipy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":0,"severity":"NONE","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00665,"percentile":0.52727,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":10.55}]},"vendorSlug":"spotipy-dev","affectedVersions":[{"vendor":"spotipy-dev","product":"spotipy","versions":["< 2.22.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T21:01:25.550140Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"spotipy","vulnerableRanges":["<2.22.1"],"patched":["2.22.1"],"from":["GHSA-q764-g6fm-555v","PYSEC-2026-926"],"provenance":"source"}],"summary":{"text":"The spotipy Python library (spotipy-dev) contains a path traversal flaw in its URI and URL parsing code, which lets arbitrary characters such as \"..\" be inserted into the path used for API requests, so a call like spotifyApi.track() can be redirected to a different Spotify API endpoint. An attacker can exploit this by supplying a malicious URI to an application that uses the library, which requires user interaction to pass that URI in, and the resulting impact depends on what the client application does with the responses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:38Z"},"euvd":{"id":"EUVD-2023-0527","exploited":false,"provenance":"source"}}