cve.bz

CVE-2023-35934 Open Redirect

8.2 highEPSS 1.0%Fix available

High (8.2). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in yt-dlp 2023.7.06.

On this page
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.

Severity

CVSS 3.1

8.2 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-35934 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-35934?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-35934?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-35934 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
yt-dl:youtube-dl2015.01.25 and later
yt-dlp_project:yt-dlpbefore 2023.07.06
yt-dlp_project:yt-dlpbefore 2023.07.06.185519
fedoraproject:fedora37
fedoraproject:fedora38

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v8mc-9377-rwjjPyPIyt-dlp<2023.7.062023.7.06
PYSEC-2026-2067PyPIyt-dlp<2023.7.062023.7.06

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12yt-dlp, youtube-dlno fix listedDEBIAN-CVE-2023-35934
Debian13, 14yt-dlp2023.07.06-1DEBIAN-CVE-2023-35934
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moreyt-dlpno fix listedUBUNTU-CVE-2023-35934
SUSEPackage Hub 15 SP5yt-dlp2023.11.14-bp155.3.3.1openSUSE-SU-2023:0374-1
openSUSELeap 15.5yt-dlp2023.11.14-bp155.3.3.1openSUSE-SU-2023:0374-1
openSUSETumbleweedyt-dlp2023.07.06-1.1openSUSE-SU-2024:13142-1
Alpinev3.18, v3.19, v3.20 and 4 moreyt-dlp2023.07.06-r0ALPINE-CVE-2023-35934

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON