CVE-2023-35934

Summary

CVECVE-2023-35934
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-07-06 20:15:00 UTC
Updated2023-08-25 03:15:00 UTC
Descriptionyt-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.

Risk And Classification

Problem Types: CWE-200

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 37 All All All
Operating System Fedoraproject Fedora 38 All All All
Application Youtube-dlc Project Youtube-dlc All All All All
Application Yt-dl Youtube-dl All All All All
Application Yt-dlp Project Yt-dlp All All All All
Application Yt-dlp Project Yt-dlp All All All All

References

ReferenceSourceLinkTags
[fd/external] Scope cookies · yt-dlp/yt-dlp@1ceb657 · GitHub MISC github.com
[core] Prevent `Cookie` leaks on HTTP redirect · yt-dlp/yt-dlp@f8b4bcc · GitHub MISC github.com
[SECURITY] Fedora 37 Update: youtube-dl-2023.07.30.git2efc8de-1.20230815git2efc8de.fc37 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
[core] Change how `Cookie` headers are handled · yt-dlp/yt-dlp@3121512 · GitHub MISC github.com
File Downloader cookie leak in yt-dlp · Advisory · yt-dlp/yt-dlp · GitHub MISC github.com
Release yt-dlp 2023.07.06 · yt-dlp/yt-dlp · GitHub MISC github.com
[SECURITY] Fedora 38 Update: yt-dlp-2023.07.06-1.fc38 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
Release yt-dlp nightly 2023.07.06.185519 · yt-dlp/yt-dlp-nightly-builds · GitHub MISC github.com
[SECURITY] Fedora 38 Update: youtube-dl-2023.08.04.git86e3cf5-1.20230815git86e3cf5.fc38 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
[SECURITY] Fedora 37 Update: yt-dlp-2023.07.06-1.fc37 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 284305 Fedora Security Update for yt (FEDORA-2023-9f3938e10d)
  • 284311 Fedora Security Update for yt (FEDORA-2023-79e2b35ba6)
  • 506283 Alpine Linux Security Update for yt-dlp
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report