CVE-2023-35934 json
yt-dlp File Downloader cookie leak
published 2023-07-06 3 y ago modified 2026-09-10 1 mo ago also GHSA-v8mc-9377-rwjj , PYSEC-2026-2067 , EUVD-2023-2146
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi yt-dlp 2023.7.06
- yt-dlp_project yt-dlp 2023.07.06, 2023.07.06.185519
- yt-dlp Debian 14, Debian 13 2023.07.06-1
debian advisories DEBIAN-CVE-2023-35934
- yt-dlp openSUSE Tumbleweed 2023.07.06-1.1
- yt-dlp Package Hub 15 SP5, openSUSE Leap 15.5 2023.11.14-bp155.3.3.1
opensuse advisories openSUSE-SU-2024:13142-1openSUSE-SU-2023:0374-1
- yt-dlp Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 2023.07.06-r0
alpine advisories ALPINE-CVE-2023-35934
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-35934 updated cvss 6.1
yt-dlp: cookie leak vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | yt-dlp | <2023.7.06 |
2023.7.06 |
Affected products
- yt-dlp yt-dlp
Classification
References
-
github.com
/yt-dlp/yt-dlp/commit/1ceb657bdd254ad961489e5060f2ccc7d556b729
web, patch
-
github.com
/yt-dlp/yt-dlp/commit/3121512228487c9c690d3d39bfd2579addf96e07
web, patch
-
github.com
/yt-dlp/yt-dlp/commit/f8b4bcc0a791274223723488bfbfc23ea3276641
web, patch
-
github.com
/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj
web, vendor-advisory
-
github.com
/yt-dlp/yt-dlp-nightly-builds/releases/tag/2023.07.06.185519
web, release-notes
-
github.com
/yt-dlp/yt-dlp/releases/tag/2023.07.06
web, release-notes
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IM44RJL2MR2WG3ZY354C5IUEEZUJGEVA/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/5X6YT6AQE5FHM5VTQLKKJXSYBLLJF26W/
mailing-list
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/HEOKCGVONGHR2SYUIXU33A4MKXZBDP6L/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/M7E7CQ5S5KMZHAMCNU7V7KYNBVCPLBHG/
-
nvd.nist.gov
/vuln/detail/CVE-2023-35934
advisory
-
github.com
/yt-dlp/yt-dlp
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/5X6YT6AQE5FHM5VTQLKKJXSYBLLJF26W
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HEOKCGVONGHR2SYUIXU33A4MKXZBDP6L
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IM44RJL2MR2WG3ZY354C5IUEEZUJGEVA
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/M7E7CQ5S5KMZHAMCNU7V7KYNBVCPLBHG
web
-
pypi.org
/project/yt-dlp
package
-
github.com
/advisories/GHSA-v8mc-9377-rwjj
advisory
Sources
- CVE List CVE-2023-35934
- GitHub Advisory GHSA-v8mc-9377-rwjj
- NVD CVE-2023-35934
- OSV PYSEC-2026-2067
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.