Description
Spotipy is a Python library for the Spotify Web API. Prior to version 2.25.2, there is a cross-site scripting (XSS) vulnerability in the OAuth callback server that allows for JavaScript injection through the unsanitized error parameter. Attackers can execute arbitrary JavaScript in the user's browser during OAuth authentication. This issue has been patched in version 2.25.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| spotipy-dev | spotipy | < 2.25.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | spotipy | 2.25.2-1 | — |
| Debian 13 | spotipy | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | spotipy | No fix yet | — |
| Ubuntu 26.04 LTS | spotipy | No fix yet | — |
| Ubuntu 25.10 | spotipy | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-spotipy | 2.25.2-1.1 | openSUSE-SU-2025:15777-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | spotipy | < 2.25.2 | 2.25.2 | GHSA-r77h-rpp9-w2xm |
Advisories 1
- openSUSE-SU-2025:15777-1 python311-spotipy-2.25.2-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026