CVE-2025-66040 | Spotipy has a XSS vulnerability in 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: 2025-11-26 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-66040 is rated Low Risk (15.6/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.13%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-66040

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.03% 0.13% +0.11%
2 2025-11-27 0.03%

Full EPSS history (2 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-66040

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
3.6 3.1 LOW
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
1.0 2.5 [email protected]

Weakness enumeration for CVE-2025-66040

GitHub Security Advisory for CVE-2025-66040

GHSA-r77h-rpp9-w2xm · Severity: low · Ecosystem: pip — Spotipy has a XSS vulnerability in its OAuth callback server

OS Trackers for CVE-2025-66040

vendor priority summary link
debian not yet assigned CVE-2025-66040 not yet assigned priority: Debian including 1 source packages (spotipy), 3 status rows across 3 suites (forky, sid, trixie): resolved 2, open 1. https://security-tracker.debian.org/tracker/CVE-2025-66040
ubuntu medium CVE-2025-66040 medium priority: Ubuntu including 1 source packages (spotipy), 5 status rows across 5 suites (jammy, noble, plucky, questing, upstream): DNE 2, needs-triage 2, ignored 1. https://ubuntu.com/security/CVE-2025-66040

Affected software / configurations for CVE-2025-66040

Vendor Product Version Raw CPE
No affected products in dataset.

References for CVE-2025-66040

cvelogic Threat Intelligence