yt-dlp File Downloader cookie leak
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure, Spoofing
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-200 and CWE-601.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| yt-dlp | yt-dlp | yt-dlp < 2023.07.06; yt-dlp < nightly 2023.07.06.185519 | — | No fix listed | CNA |
| — | yt-dlp (PyPI) | before 2023.7.06 | 2023.7.06 | Patch available | GHSA-v8mc-9377-rwjj |
- yt-dlp Vendoryt-dlp Affected yt-dlp < 2023.07.06; yt-dlp < nightly 2023.07.06.185519 Fixed in — No fix listed CNA
- yt-dlp (PyPI) Vendor— Affected before 2023.7.06 Fixed in 2023.7.06 Patch available GHSA-v8mc-9377-rwjj
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:youtube-dlc_project:youtube-dlc:*:*:*:*:*:*:*:* | all versions | Vulnerable | Youtube-dlc Project |
| cpe:2.3:a:yt-dl:youtube-dl:*:*:*:*:*:*:*:* | 2015.01.25 | Vulnerable | Yt-dl |
| cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:-:*:*:* | before 2023.07.06 | Vulnerable | yt-dlp |
| cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:nightly:*:*:* | before 2023.07.06.185519 | Vulnerable | yt-dlp |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* | 38 | Vulnerable | Fedoraproject |
- cpe:2.3:a:youtube-dlc_project:youtube-dlc:*:*:*:*:*:*:*:* Versions all versions Vulnerable ·Youtube-dlc Project
- cpe:2.3:a:yt-dl:youtube-dl:*:*:*:*:*:*:*:* Versions 2015.01.25 Vulnerable ·Yt-dl
- cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:-:*:*:* Versions before 2023.07.06 Vulnerable ·yt-dlp
- cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:nightly:*:*:* Versions before 2023.07.06.185519 Vulnerable ·yt-dlp
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Versions 38 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-v8mc-9377-rwjj yt-dlp (PyPI) Fixed in 2023.7.06 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-35934
- 2026-10-03 Alias added: GHSA-v8mc-9377-rwjj
References
Patch 3
Advisory 2
Other 11
- https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2023.07.06.185519
- https://github.com/yt-dlp/yt-dlp/releases/tag/2023.07.06
- https://lists.fedoraproject.org/archives/list/[email protected]/message/IM44RJL2MR2WG3ZY354C5IUEEZUJGEVA/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5X6YT6AQE5FHM5VTQLKKJXSYBLLJF26W/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HEOKCGVONGHR2SYUIXU33A4MKXZBDP6L/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/M7E7CQ5S5KMZHAMCNU7V7KYNBVCPLBHG/
- https://github.com/yt-dlp/yt-dlp
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5X6YT6AQE5FHM5VTQLKKJXSYBLLJF26W
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HEOKCGVONGHR2SYUIXU33A4MKXZBDP6L
- https://lists.fedoraproject.org/archives/list/[email protected]/message/IM44RJL2MR2WG3ZY354C5IUEEZUJGEVA
- https://lists.fedoraproject.org/archives/list/[email protected]/message/M7E7CQ5S5KMZHAMCNU7V7KYNBVCPLBHG
More Yt-dlp vulnerabilities
- TI-2024-03325 Command injection vulnerability in programing languages on Microsoft Windows operating system. CVSS 3.1CRITICAL 9.8
- TI-2026-36849 yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519) CVSS 3.1CRITICAL 9.6
- TI-2025-33915 yt-dlp allows `--exec` command injection when using placeholder on Windows CVSS 3.1HIGH 8.1
- TI-2024-14996 yt-dlp `--exec` command injection when using `%q` in yt-dlp on Windows CVSS 3.1CRITICAL 9.8
- TI-2026-21287 yt-dlp: Arbitrary Command Injection when using the `--netrc-cmd` option CVSS 3.1HIGH 8.8
- TI-2026-37295 yt-dlp: Arbitrary code execution via manifest downloads with aria2c CVSS 3.1CRITICAL 9.6
Sources
- CVE-2023-35934 · CVE Program
- CVE-2023-35934 · NVD
- FIRST EPSS
- GHSA-v8mc-9377-rwjj · GitHub Advisory Database · CC BY 4.0
- CVE-2023-35934 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences