CVE-2023-35934 yt-dlp File Downloader cookie leak
- Published
- Updated
- Exploit status
- No public exploit known
Description
yt-dlp is a command-line program to download videos from video sites. During file downloads, yt-dlp or the external downloaders that yt-dlp employs may leak cookies on HTTP redirects to a different host, or leak them when the host for download fragments differs from their parent manifest's host. This vulnerable behavior is present in yt-dlp prior to 2023.07.06 and nightly 2023.07.06.185519. All native and external downloaders are affected, except for curl and httpie (version 3.1.0 or later).
At the file download stage, all cookies are passed by yt-dlp to the file downloader as a Cookie header, thereby losing their scope. This also occurs in yt-dlp's info JSON output, which may be used by external tools. As a result, the downloader or external tool may indiscriminately send cookies with requests to domains or paths for which the cookies are not scoped.
yt-dlp version 2023.07.06 and nightly 2023.07.06.185519 fix this issue by removing the Cookie header upon HTTP redirects; having native downloaders calculate the Cookie header from the cookiejar, utilizing external downloaders' built-in support for cookies instead of passing them as header arguments, disabling HTTP redirectiong if the external downloader does not have proper cookie support, processing cookies passed as HTTP headers to limit their scope, and having a separate field for cookies in the info dict storing more information about scoping
Some workarounds are available for those who are unable to upgrade. Avoid using cookies and user authentication methods. While extractors may set custom cookies, these usually do not contain sensitive information. Alternatively, avoid using --load-info-json. Or, if authentication is a must: verify the integrity of download links from unknown sources in browser (including redirects) before passing them to yt-dlp; use curl as external downloader, since it is not impacted; and/or avoid fragmented formats such as HLS/m3u8, DASH/mpd and ISM.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi yt-dlp(PyPI) | < 2023.7.06 | 2023.7.06 |
| pypi yt-dlp(PyPI) | = 2021.1.15 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.15.post1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.16 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.20 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.24 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.24.post1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.1.29 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.10.10 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.10.22 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.10.9 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.11.10 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.11.10.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.12.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.12.25 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.12.27 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.2.15 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.2.19 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.2.24 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.2.4 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.2.9 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.15 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.21 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.24 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi yt-dlp(PyPI) | = 2021.3.24.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.3 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.3.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.3.2 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.3.7 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.4.11 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.4.22 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.4.3 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.5.11 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.5.20 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.6.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.6.23 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.6.8 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.6.9 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.7.21 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.7.24 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.7.7 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.8.10 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.8.2 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.9.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.9.2 | No fix listed |
| pypi yt-dlp(PyPI) | = 2021.9.25 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.1.21 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.10.4 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.11.11 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.2.3 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.2.4 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.3.8 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.3.8.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.3.8.2 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.4.8 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.5.18 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.6.22 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.6.22.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.6.29 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.7.17 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.7.18 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.8.14 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.8.19 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.8.8 | No fix listed |
| pypi yt-dlp(PyPI) | = 2022.9.1 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.1.2 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.1.6 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.2.17 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.3.3 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.3.4 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.6.21 | No fix listed |
| pypi yt-dlp(PyPI) | = 2023.6.22 | No fix listed |
| debian/youtube-dl(Debian:12) | All versions | No fix listed |
| debian/youtube-dl(Debian:12) | = 2021.12.17-2 | No fix listed |
| debian/yt-dlp(Debian:12) | All versions | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.03.04-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.06.21-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.06.22-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.06.22-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.07.06-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.07.06-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.09.24-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.09.24-2 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.09.24-2~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.10.07-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.10.07-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.10.13-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.10.13-1~bpo11+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.10.13-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.11.16-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.11.16-1~bpo11+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.11.16-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2023.12.30-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.03.10-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.03.10-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.04.09-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.04.09-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.05.26-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.05.26-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.05.27-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.05.27-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.01-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.02-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.02-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.07-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.09-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.09-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.16-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.16-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.25-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.07.25-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.08.01-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.08.01-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.08.06-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.08.06-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.09.27-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.09.27-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.10.07-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.10.07-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.10.22-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.10.22-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.11.04-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.11.18-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.11.18-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.03-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.03-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.06-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.06-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.13-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.13-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.23-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2024.12.23-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.12-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.12-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.15-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.15-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.26-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.01.26-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.02.19-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.02.19-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.21-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.21-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.25-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.26-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.26-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.27-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.27-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.31-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.03.31-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.04.30-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.04.30-1~bpo12+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.05.22-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.06.09-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.06.25-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.06.30-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.07.21-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.11-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.11-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.20-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.22-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.27-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.08.27-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.09.05-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.09.05-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.09.23-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.09.26-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.09.26-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.10.14-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.10.14-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.10.22-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.10.22-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.11.12-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.11.12-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.12.08-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2025.12.08-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.01.31-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.01.31-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.02.21-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.02.21-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.03-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.03-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.13-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.13-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.17-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.03.17-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.06.09-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.06.09-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.07.04-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.07.04-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.08.19-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.08.19-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.10.21-1 | No fix listed |
| debian/yt-dlp(Debian:12) | = 2026.10.21-1~bpo13+1 | No fix listed |
| debian/yt-dlp(Debian:13) | < 2023.07.06-1 | 2023.07.06-1 |
| debian/yt-dlp(Debian:14) | < 2023.07.06-1 | 2023.07.06-1 |
| yt-dlp | = yt-dlp < 2023.07.06 | No fix listed |
| yt-dlp | = yt-dlp < nightly 2023.07.06.185519 | No fix listed |
| ubuntu/yt-dlp(Ubuntu:22.04) | All versions | No fix listed |
| alpine/yt-dlp(Alpine:v3.18) | < 2023.07.06-r0 | 2023.07.06-r0 |
References
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/yt-dlp/yt-dlp/commit/1ceb657bdd254ad961489e5060f2ccc7d556b729 patch
- https://github.com/yt-dlp/yt-dlp/commit/3121512228487c9c690d3d39bfd2579addf96e07 patch
- https://github.com/yt-dlp/yt-dlp/commit/f8b4bcc0a791274223723488bfbfc23ea3276641 patch
- github.com product
- https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2023.07.06.185519 release-notes
- https://github.com/yt-dlp/yt-dlp/releases/tag/2023.07.06 release-notes
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org
- github.com vendor-advisory
- pypi.org product
- Debian Security Tracker CVE-2023-35934 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking