# CVE-2023-23608: spotipy Path traversal vulnerability that may lead to type confusion in URI handling code

- Severity: None 0.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-23T22:05:11.000Z
- Modified: 2026-09-10T03:49:51.557Z
- Also known as: GHSA-q764-g6fm-555v, PYSEC-2026-926
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- spotipy-dev spotipy: < 2.22.1
- spotipy (PyPI): before 2.22.1
- spotipy_project spotipy: before 2.22.1

## Every score

- GitHub_M: CVSS:3.1 0.0 None `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v> (exploit, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23608> (advisory)
- <https://github.com/spotipy-dev/spotipy> (package)
- <https://pypi.org/project/spotipy> (package)
- <https://github.com/advisories/GHSA-q764-g6fm-555v> (advisory)

## Sources

- CVE List: [CVE-2023-23608](https://www.cve.org/CVERecord?id=CVE-2023-23608), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-q764-g6fm-555v](https://github.com/advisories/GHSA-q764-g6fm-555v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-23608](https://nvd.nist.gov/vuln/detail/CVE-2023-23608), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-926](https://osv.dev/vulnerability/PYSEC-2026-926), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-23608 · Whole record: https://cve.day/CVE-2023-23608.json · Rebuilt by cve.day 2026-11-25T22:58:21.728Z
