# CVE-2025-66040: Spotipy has a XSS vulnerability in OAuth callback server

- Severity: Low 3.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-11-26T23:14:44.795Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-r77h-rpp9-w2xm, PYSEC-2026-1937
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- spotipy-dev spotipy: < 2.25.2
- spotipy (PyPI): before 2.25.2

## Every score

- GitHub_M: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm> (web)
- <https://github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767> (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)

## Sources

- CVE List: [CVE-2025-66040](https://www.cve.org/CVERecord?id=CVE-2025-66040), CVE Terms of Use, modified 2025-11-28
- GitHub Advisory Database: [GHSA-r77h-rpp9-w2xm](https://github.com/advisories/GHSA-r77h-rpp9-w2xm), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-66040](https://nvd.nist.gov/vuln/detail/CVE-2025-66040), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1937](https://osv.dev/vulnerability/PYSEC-2026-1937), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-66040 · Whole record: https://cve.day/CVE-2025-66040.json · Rebuilt by cve.day 2026-11-25T22:59:08.055Z
