Cross-site Scripting (XSS) Affecting spotipy package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN14-SPOTIPY-14139341
  • published28 Nov 2025
  • disclosed27 Nov 2025

Introduced: 27 Nov 2025

NewCVE-2025-66040  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for Debian:14 spotipy.

NVD Description

Note: Versions mentioned in the description apply only to the upstream spotipy package and not the spotipy package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.