Read the docs
TI-2025-40566 Aliases CVE-2025-66040GHSA-r77h-rpp9-w2xm

Spotipy has a XSS vulnerability in OAuth callback server

Priority MEDIUM 50CWE-79Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00166 5th percentileScored 2026-11-07
Fix Fixed spotipy (spotipy-dev): 2.25.2spotipy (PyPI): 2.25.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
spotipy-devspotipybefore 2.25.22.25.2Patch availableCNA
—spotipy (PyPI)before 2.25.22.25.2Patch availableGHSA-r77h-rpp9-w2xm
  • spotipy Vendorspotipy-dev Affected before 2.25.2 Fixed in 2.25.2 Patch available CNA
  • spotipy (PyPI) Vendor— Affected before 2.25.2 Fixed in 2.25.2 Patch available GHSA-r77h-rpp9-w2xm

Remediation

  • Fix · CNA spotipy (spotipy-dev) Fixed in 2.25.2
  • Fix · GHSA-r77h-rpp9-w2xm spotipy (PyPI) Fixed in 2.25.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-66040
  2. 2026-10-03 Alias added: GHSA-r77h-rpp9-w2xm

References

  • TI-2025-30321 Spotipy repo vulnerable to secrets exfiltration via `pull_request_target` CVSS 3.1CRITICAL 9.1

Sources