ADVISORIES

Vulnerability

CVE-2025-66040

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.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • DEBIAN-CVE-2025-66040

    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…

    CVE-2025-66040 Debian Updated 23 October 2026
  • GHSA-r77h-rpp9-w2xm

    Spotipy has a XSS vulnerability in its OAuth callback server

    Low CVE-2025-66040 PyPI Updated 7 July 2026
  • PYSEC-2026-1937

    Spotipy has a XSS vulnerability in its OAuth callback server

    CVE-2025-66040 PyPI Updated 7 July 2026
  • UBUNTU-CVE-2025-66040

    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…

    CVE-2025-66040 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2025:15777-1

    python311-spotipy-2.25.2-1.1 on GA media

    CVE-2025-66040 openSUSE Updated 23 March 2026

References