CVE-2025-66040
LOW 3.6CVSS 3.1Spotipy has a XSS vulnerability in its OAuth callback server
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.
- Published
- 27 Nov 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-r77h-rpp9-w2xmPYSEC-2026-1937
- Sources
- NVDJSONOSV GHSA-r77h-rpp9-w2xmJSONOSV PYSEC-2026-1937JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | spotipy | < 2.25.2 | 2.25.2 |
References
- https://github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767 · WEB
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66040 · ADVISORY
- https://github.com/spotipy-dev/spotipy · PACKAGE
- https://pypi.org/project/spotipy · PACKAGE
- https://github.com/advisories/GHSA-r77h-rpp9-w2xm · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 27 Nov 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Dec 2025)