Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. spotipy
  4. ›
  5. CVE-2025-66040

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

December 1, 2025

XSS vulnerability in OAuth callback server allows JavaScript injection through unsanitized error parameter. Attackers can execute arbitrary JavaScript in the user’s browser during OAuth authentication.

References

  • github.com/advisories/GHSA-r77h-rpp9-w2xm
  • github.com/spotipy-dev/spotipy
  • github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767
  • github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm
  • nvd.nist.gov/vuln/detail/CVE-2025-66040

Code Behaviors & Features

Detect and mitigate CVE-2025-66040 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.25.2

Fixed versions

  • 2.25.2

Solution

Upgrade to version 2.25.2 or above.

Impact 3.6 LOW

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/spotipy/CVE-2025-66040.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:19:22 +0000.