Spotipy has a XSS vulnerability in OAuth callback server
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| spotipy-dev | spotipy | before 2.25.2 | 2.25.2 | Patch available | CNA |
| — | spotipy (PyPI) | before 2.25.2 | 2.25.2 | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2025-66040
- 2026-10-03 Alias added: GHSA-r77h-rpp9-w2xm
References
More spotipy-dev vulnerabilities
- TI-2025-30321 Spotipy repo vulnerable to secrets exfiltration via `pull_request_target` CVSS 3.1CRITICAL 9.1
Sources
- CVE-2025-66040 · CVE Program
- CVE-2025-66040 · NVD
- FIRST EPSS
- GHSA-r77h-rpp9-w2xm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences