Vulnerability · Published Nov 14, 2023 · Assigned by GitHub_M
CVE-2023-46121Generic Extractor MITM Vulnerability in yt-dlp
Medium 5.0
In plain English
A medium-severity security flaw in yt-dlp from yt-dlp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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`.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | yt-dlp | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine:v3.21 | yt-dlp | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine:v3.22 | yt-dlp | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine:v3.23 | yt-dlp | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Alpine:v3.24 | yt-dlp | 2023.11.14-r0 | ALPINE-CVE-2023-46121 |
| Debian:12 | yt-dlp | no fix listed | DEBIAN-CVE-2023-46121 |
| Debian:13 | yt-dlp | 2023.11.16-1 | DEBIAN-CVE-2023-46121 |
| Debian:14 | yt-dlp | 2023.11.16-1 | DEBIAN-CVE-2023-46121 |
| PyPI | yt-dlp | 2023.11.14 | PYSEC-2026-2063 |
| PyPI | yt-dlp | 2023.11.14 | GHSA-3ch3-jhc6-5r8x |
| Ubuntu:22.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2023-46121 |
| Ubuntu:24.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2023-46121 |
| Ubuntu:25.10 | yt-dlp | no fix listed | UBUNTU-CVE-2023-46121 |
| Ubuntu:26.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2023-46121 |
| Ubuntu:26.10 | yt-dlp | no fix listed | UBUNTU-CVE-2023-46121 |
Affected products (as reported)
Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x x_refsource_CONFIRM
- https://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb x_refsource_MISC
- https://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14 x_refsource_MISC