Spotipy: Prior to version 2.25.2, there is a cross-site scripting (XSS) vulnerability in the OAuth callback server
Affects spotipySource GCVE Database
Not known to be exploited · CVSS 3.6 Low · fixed in 2.25.2 : update spotipy when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 3.6 |
|---|
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.25.2
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSspotipypkg:deb/ubuntu/spotipy?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10spotipypkg:deb/ubuntu/spotipy?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-66040 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-66040 (opens in a new tab)
- github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm (opens in a new tab)
- github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767 (opens in a new tab)