Skip to content
OpenAdvisories
Low · 3.6 CVE-2025-66040 EUVD-2025-199770GHSA-r77h-rpp9-w2xmPYSEC-2026-1937

Spotipy has a XSS vulnerability in OAuth callback server

Published Nov 26, 2025 · Updated Nov 28, 2025 · Assigned by GitHub_M

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

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

ReleasePackageFixed inAdvisory
Debian 14 spotipy 2.25.2-1 —
Debian 13 spotipy No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 spotipy No fix yet —
Ubuntu 26.04 LTS spotipy No fix yet —
Ubuntu 25.10 spotipy No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-spotipy 2.25.2-1.1 openSUSE-SU-2025:15777-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI spotipy < 2.25.2 2.25.2 GHSA-r77h-rpp9-w2xm

Advisories 1

References