Cookie disclosure via unscoped downloader headers
Published Jul 6, 2023 · Updated Feb 13, 2025
Cookie exposure in the file downloader in yt-dlp before 2023.07.06 allows remote attackers to steal scoped cookies through redirects. At the file-download stage, yt-dlp copies every cookie into a raw Cookie header, discarding domain and path scope before native or external downloaders follow redirects or fetch fragments. Exploitation requires a user with loaded cookies to process an attacker-controlled download URL or manifest, after which cookies can reach an unauthorized host; curl and httpie 3.1.0 or later are excluded.
Summary
What happened
Cookie exposure in the file downloader in yt-dlp before 2023.07.06 allows remote attackers to steal scoped cookies through redirects. At the file-download stage, yt-dlp copies every cookie into a raw Cookie header, discarding domain and path scope before native or external downloaders follow redirects or fetch fragments. Exploitation requires a user with loaded cookies to process an attacker-controlled download URL or manifest, after which cookies can reach an unauthorized host; curl and httpie 3.1.0 or later are excluded.
The record
- CVE
- CVE-2023-35934
- Published
- Jul 6, 2023
- Updated
- Feb 13, 2025
- Vendor
- yt-dlp
- Product
- yt-dlp
- Classifications
- CWE-200, CWE-601, T1539
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 6, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=yt-dlp < 2023.07.06
- Affected versionversion=yt-dlp < nightly 2023.07.06.185519
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo