medium6.1
CVE-2026-50019
yt-dlp is a command-line audio/video downloader.
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | yt-dlp | >= 2023.9.24, < 2026.6.9 | 2026.6.9 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Yt-Dlp Project | Yt-Dlp | from 2023.09.24 before 2026.06.09 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-f7j3-774f-rfhj
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-f7j3-774f-rfhj
- https://github.com/yt-dlp/yt-dlp/commit/2726572520238356bcf64aba2040228648b44c82
- 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://nvd.nist.gov/vuln/detail/CVE-2026-50019
- https://github.com/pypa/advisory-database/tree/main/vulns/yt-dlp/PYSEC-2026-3431.yaml
- https://github.com/yt-dlp/yt-dlp
- https://pypi.org/project/yt-dlp