{"id":"CVE-2025-66040","published":"2025-11-26T23:14:44Z","modified":"2025-11-28T15:25:40Z","title":"Spotipy has a XSS vulnerability in OAuth callback server","vendor":"spotipy-dev","product":"spotipy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00166,"percentile":0.05982,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767","tags":["x_refsource_MISC"]}],"priority":{"score":3.7,"factors":[{"name":"EPSS percentile","points":1.2},{"name":"CVSS severity","points":2.52}]},"vendorSlug":"spotipy-dev","affectedVersions":[{"vendor":"spotipy-dev","product":"spotipy","versions":["< 2.25.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-28T15:25:12.176179Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"spotipy","vulnerableRanges":["<2.25.2"],"patched":["2.25.2"],"from":["GHSA-r77h-rpp9-w2xm","PYSEC-2026-1937"],"provenance":"source"}],"summary":{"text":"The Spotipy Python library for the Spotify Web API contains a cross-site scripting flaw in its OAuth callback server, where the error parameter is not sanitised before being rendered. An attacker can inject and run arbitrary JavaScript in a user's browser during OAuth authentication, but only with local access to the affected machine, a high-complexity setup, and the victim's interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:52Z"},"euvd":{"id":"EUVD-2025-199770","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-23608","published":"2023-01-24","fixed":"2.22.1","kev":false},{"cve":"CVE-2025-27154","published":"2025-02-27","fixed":"2.25.1","kev":false,"link":{"from":"CVE-2025-27154","to":"CVE-2025-66040","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:spotipy","fromFixed":"2.25.1","toFixed":"2.25.2","daysApart":272}]}},{"cve":"CVE-2025-66040","published":"2025-11-26","fixed":"2.25.2","kev":false}],"package":"PyPI:spotipy"}}