{"cve":"CVE-2025-66040","nvd":{"published":"2025-11-27T00:15:55.343","modified":"2026-10-19T13:10:00.110","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":3.6},"cwes":["CWE-79"],"references":["https://github.com/spotipy-dev/spotipy/commit/880b92d7243dcf2b83bf31dc365a858d8b5e6767","https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-r77h-rpp9-w2xm"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:16:02.354564667+00:00"},"epss":{"cve":"CVE-2025-66040","score":0.00156,"percentile":0.0472,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-r77h-rpp9-w2xm","url":"https://osv.dev/vulnerability/GHSA-r77h-rpp9-w2xm","summary":"Spotipy has a XSS vulnerability in its OAuth callback server","modified":"2026-07-07T17:56:27.150623711Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.25.2"],"fixed":["2.25.2"]}]},{"id":"PYSEC-2026-1937","url":"https://osv.dev/vulnerability/PYSEC-2026-1937","summary":"Spotipy has a XSS vulnerability in its OAuth callback server","modified":"2026-07-07T17:47:58.766812649Z","packages":[{"ecosystem":"PyPI","name":"spotipy","purl":"pkg:pypi/spotipy","ranges":["<2.25.2"],"fixed":["2.25.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}