CVEfocus › CVE database › CVE-2025-66040

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

CVSS 3.6 LowEPSS 0.2% (higher than 6% of CVEs)Published 2025-11-26Updated 2025-11-28Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
1Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10spotipyFix pendingUBUNTU-CVE-2025-66040
Ubuntu 26.04spotipyUnder investigationUBUNTU-CVE-2025-66040
Ubuntu 25.10spotipyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-66040
Debian 14spotipyFixed2.25.2-1DEBIAN-CVE-2025-66040
Debian 13spotipyFix pendingDEBIAN-CVE-2025-66040
PyPI libraryspotipyFixed2.25.2GHSA-r77h-rpp9-w2xm

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.