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.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.3%top 74.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20yt-dlp2023.11.14-r0ALPINE-CVE-2023-46121
Alpine:v3.21yt-dlp2023.11.14-r0ALPINE-CVE-2023-46121
Alpine:v3.22yt-dlp2023.11.14-r0ALPINE-CVE-2023-46121
Alpine:v3.23yt-dlp2023.11.14-r0ALPINE-CVE-2023-46121
Alpine:v3.24yt-dlp2023.11.14-r0ALPINE-CVE-2023-46121
Debian:12yt-dlpno fix listedDEBIAN-CVE-2023-46121
Debian:13yt-dlp2023.11.16-1DEBIAN-CVE-2023-46121
Debian:14yt-dlp2023.11.16-1DEBIAN-CVE-2023-46121
PyPIyt-dlp2023.11.14PYSEC-2026-2063
PyPIyt-dlp2023.11.14GHSA-3ch3-jhc6-5r8x
Ubuntu:22.04:LTSyt-dlpno fix listedUBUNTU-CVE-2023-46121
Ubuntu:24.04:LTSyt-dlpno fix listedUBUNTU-CVE-2023-46121
Ubuntu:25.10yt-dlpno fix listedUBUNTU-CVE-2023-46121
Ubuntu:26.04:LTSyt-dlpno fix listedUBUNTU-CVE-2023-46121
Ubuntu:26.10yt-dlpno fix listedUBUNTU-CVE-2023-46121

Affected products (as reported)

VendorProductVersions
yt-dlp yt-dlp >= 2022.10.04, < 2023.11.14

Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

References