CVE-2023-46121Generic Extractor MITM Vulnerability in yt-dlp
yt-dlp is a youtube-dl fork with additional features and fixes. The Generic Extractor in yt-dlp is vulnerable to an attacker setting an arbitrary proxy for a request to an arbitrary url, allowing the attacker to MITM the request made from yt-dlp's HTTP session. This could lead to cookie exfiltration in some cases. Version 2023.11.14 removed the ability to smuggle `http_headers` to the Generic extractor, as well as other extractors that use the same pattern. Users are advised to upgrade. Users unable to upgrade should disable the Ggneric extractor (or only pass trusted sites with trusted content) and ake caution when using `--no-check-certificate`.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | yt-dlp | Fix pending | UBUNTU-CVE-2023-46121 | |
| Ubuntu 26.04 | yt-dlp | Under investigation | UBUNTU-CVE-2023-46121 | |
| Ubuntu 25.10 | yt-dlp | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-46121 | |
| Ubuntu 24.04 | yt-dlp | Under investigation | UBUNTU-CVE-2023-46121 | |
| Ubuntu 22.04 | yt-dlp | Under investigation | UBUNTU-CVE-2023-46121 | |
| Debian 14 | yt-dlp | Fixed | 2023.11.16-1 | DEBIAN-CVE-2023-46121 |
| Debian 13 | yt-dlp | Fixed | 2023.11.16-1 | DEBIAN-CVE-2023-46121 |
| Debian 12 | yt-dlp | Fix pending | DEBIAN-CVE-2023-46121 | |
| Alpine Linux 3.24 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.23 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.22 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.21 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.20 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.19 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine Linux 3.18 | yt-dlp | Fixed | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| PyPI library | yt-dlp | Fixed | 2023.11.14 | PYSEC-2026-2063 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- yt-dlp: affected: >= 2022.10.04, < 2023.11.14
References
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x
- https://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb
- https://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.