Vulnerability · Published Nov 26, 2025 · Assigned by GitHub_M

CVE-2025-66040Spotipy has a XSS vulnerability in OAuth callback server

Low 3.6

In plain English

A low-severity cross-site scripting in spotipy from spotipy-dev. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.6Low
Exploit odds (30 days)0.2%top 94.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13spotipyno fix listedDEBIAN-CVE-2025-66040
Debian:14spotipy2.25.2-1DEBIAN-CVE-2025-66040
PyPIspotipy2.25.2PYSEC-2026-1937
PyPIspotipy2.25.2GHSA-r77h-rpp9-w2xm
Ubuntu:25.10spotipyno fix listedUBUNTU-CVE-2025-66040
Ubuntu:26.04:LTSspotipyno fix listedUBUNTU-CVE-2025-66040
Ubuntu:26.10spotipyno fix listedUBUNTU-CVE-2025-66040

Affected products (as reported)

VendorProductVersions
spotipy-dev spotipy < 2.25.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

References