CVE-2025-66040 json
Spotipy has a XSS vulnerability in OAuth callback server
published 11mo ago modified 21d ago also EUVD-2025-199770 , GHSA-r77h-rpp9-w2xm , PYSEC-2026-1937
- cvss
- 3.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi spotipy 2.25.2
- spotipy_project spotipy 2.25.2
- spotipy Debian 14 2.25.2-1
debian advisories DEBIAN-CVE-2025-66040
- python-spotipy openSUSE Tumbleweed 2.25.2-1.1
opensuse advisories openSUSE-SU-2025:15777-1
Is CVE-2025-66040 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 11mo ago
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | spotipy | <2.25.2 |
2.25.2 |
Affected products
- spotipy-dev spotipy
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767
web
-
github.com
/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-66040
advisory
-
github.com
/spotipy-dev/spotipy
package
-
pypi.org
/project/spotipy
package
-
github.com
/advisories/GHSA-r77h-rpp9-w2xm
advisory
Sources
- CVE List CVE-2025-66040
- GitHub Advisory GHSA-r77h-rpp9-w2xm
- NVD CVE-2025-66040
- OSV PYSEC-2026-1937
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.