yt-dlp: File Downloader cookie leak with curl
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
yt-dlp is a command-line audio/video downloader. From 2023.09.24 until 2026.06.09, if curl is used as an external downloader for yt-dlp, cookies may be leaked to an unintended host upon HTTP redirect or when the host for download fragments differs from their parent manifest's. At the file download stage, the cookies are passed by yt-dlp to the file downloader via --cookie. However, unless these are loaded from a file, this operation does not activate the cookie engine. As a result, curl will send cookies with requests to domains or paths for which the cookies are not scoped. This vulnerability is fixed in 2026.06.09.
Why it matters now
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| yt-dlp | yt-dlp | 2023.09.24 to before 2026.06.09 | 2026.06.09 | Patch available | CNA |
| — | yt-dlp (PyPI) | 2023.9.24 to before 2026.6.9 | 2026.6.9 | Patch available | GHSA-f7j3-774f-rfhj |
- yt-dlp Vendoryt-dlp Affected 2023.09.24 to before 2026.06.09 Fixed in 2026.06.09 Patch available CNA
- yt-dlp (PyPI) Vendor— Affected 2023.9.24 to before 2026.6.9 Fixed in 2026.6.9 Patch available GHSA-f7j3-774f-rfhj
Remediation
- Fix · CNA yt-dlp (yt-dlp) Fixed in 2026.06.09
- Fix · GHSA-f7j3-774f-rfhj yt-dlp (PyPI) Fixed in 2026.6.9 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50019
- 2026-10-03 Alias added: GHSA-f7j3-774f-rfhj
References
Advisory 2
Other 6
- https://github.com/yt-dlp/yt-dlp/commit/2726572520238356bcf64aba2040228648b44c82
- https://github.com/pypa/advisory-database/tree/main/vulns/yt-dlp/PYSEC-2026-3431.yaml
- https://github.com/yt-dlp/yt-dlp
- https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.09.230517
- https://github.com/yt-dlp/yt-dlp/releases/tag/2026.06.09
- https://pypi.org/project/yt-dlp
More Yt-dlp vulnerabilities
- 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
Sources
- CVE-2026-50019 · CVE Program
- CVE-2026-50019 · NVD
- FIRST EPSS
- GHSA-f7j3-774f-rfhj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-50019 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences