Read the docs
TI-2023-17996 Aliases CVE-2023-35934GHSA-v8mc-9377-rwjj

yt-dlp File Downloader cookie leak

Priority LOW 38CWE-200Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01047 64th percentileScored 2026-11-07
Fix Fixed yt-dlp (PyPI): 2023.7.06

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

VendorProductAffected versionsFixed inStatusSource
yt-dlpyt-dlpyt-dlp < 2023.07.06; yt-dlp < nightly 2023.07.06.185519—No fix listedCNA
—yt-dlp (PyPI)before 2023.7.062023.7.06Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:youtube-dlc_project:youtube-dlc:*:*:*:*:*:*:*:*all versionsVulnerableYoutube-dlc Project
cpe:2.3:a:yt-dl:youtube-dl:*:*:*:*:*:*:*:*2015.01.25VulnerableYt-dl
cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:-:*:*:*before 2023.07.06Vulnerableyt-dlp
cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:nightly:*:*:*before 2023.07.06.185519Vulnerableyt-dlp
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*37VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*38VulnerableFedoraproject
  • 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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-35934
  2. 2026-10-03 Alias added: GHSA-v8mc-9377-rwjj

References

  • 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
See all 10 →

Sources