{"id":"CVE-2023-46121","aliases":["ALPINE-CVE-2023-46121","DEBIAN-CVE-2023-46121","EUVD-2023-2858","GHSA-3ch3-jhc6-5r8x","PYSEC-2026-2063","UBUNTU-CVE-2023-46121","openSUSE-SU-2023:0374-1","openSUSE-SU-2024:13435-1"],"status":"published","title":"Generic Extractor MITM Vulnerability in yt-dlp","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`.","severity":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00321,"percentile":0.25274,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-444","CWE-613"],"published":"2023-11-14T23:31:55Z","modified":"2026-11-03T06:32:59Z","fixes":[{"ecosystem":"PyPI","package":"yt-dlp","fixed_in":["2023.11.14"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.18","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"yt-dlp","fixed_in":["2023.11.14-r0"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"yt-dlp","fixed_in":["2023.11.16-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"yt-dlp","fixed_in":["2023.11.16-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"yt-dlp","fixed_in":["2023.11.16-1.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2023.03.04-1","2023.06.21-1","2023.06.22-1","2023.06.22-1~bpo12+1","2023.07.06-1","2023.07.06-1~bpo12+1","2023.09.24-1","2023.09.24-2","2023.09.24-2~bpo12+1","2023.10.07-1","2023.10.07-1~bpo12+1","2023.10.13-1","2023.10.13-1~bpo11+1","2023.10.13-1~bpo12+1","2023.11.16-1","2023.11.16-1~bpo11+1","2023.11.16-1~bpo12+1","2023.12.30-1","2024.03.10-1","2024.03.10-1~bpo12+1","2024.04.09-1","2024.04.09-1~bpo12+1","2024.05.26-1","2024.05.26-1~bpo12+1","2024.05.27-1","2024.05.27-1~bpo12+1","2024.07.01-1","2024.07.02-1","2024.07.02-1~bpo12+1","2024.07.07-1","2024.07.09-1","2024.07.09-1~bpo12+1","2024.07.16-1","2024.07.16-1~bpo12+1","2024.07.25-1","2024.07.25-1~bpo12+1","2024.08.01-1","2024.08.01-1~bpo12+1","2024.08.06-1","2024.08.06-1~bpo12+1","2024.09.27-1","2024.09.27-1~bpo12+1","2024.10.07-1","2024.10.07-1~bpo12+1","2024.10.22-1","2024.10.22-1~bpo12+1","2024.11.04-1","2024.11.18-1","2024.11.18-1~bpo12+1","2024.12.03-1","2024.12.03-1~bpo12+1","2024.12.06-1","2024.12.06-1~bpo12+1","2024.12.13-1","2024.12.13-1~bpo12+1","2024.12.23-1","2024.12.23-1~bpo12+1","2025.01.12-1","2025.01.12-1~bpo12+1","2025.01.15-1","2025.01.15-1~bpo12+1","2025.01.26-1","2025.01.26-1~bpo12+1","2025.02.19-1","2025.02.19-1~bpo12+1","2025.03.21-1","2025.03.21-1~bpo12+1","2025.03.25-1","2025.03.26-1","2025.03.26-1~bpo12+1","2025.03.27-1","2025.03.27-1~bpo12+1","2025.03.31-1","2025.03.31-1~bpo12+1","2025.04.30-1","2025.04.30-1~bpo12+1","2025.05.22-1","2025.06.09-1","2025.06.25-1","2025.06.30-1","2025.07.21-1","2025.08.11-1","2025.08.11-1~bpo13+1","2025.08.20-1","2025.08.22-1","2025.08.27-1","2025.08.27-1~bpo13+1","2025.09.05-1","2025.09.05-1~bpo13+1","2025.09.23-1","2025.09.26-1","2025.09.26-1~bpo13+1","2025.10.14-1","2025.10.14-1~bpo13+1","2025.10.22-1","2025.10.22-1~bpo13+1","2025.11.12-1","2025.11.12-1~bpo13+1","2025.12.08-1","2025.12.08-1~bpo13+1","2026.01.31-1","2026.01.31-1~bpo13+1","2026.02.21-1","2026.02.21-1~bpo13+1","2026.03.03-1","2026.03.03-1~bpo13+1","2026.03.13-1","2026.03.13-1~bpo13+1","2026.03.17-1","2026.03.17-1~bpo13+1","2026.06.09-1","2026.06.09-1~bpo13+1","2026.07.04-1","2026.07.04-1~bpo13+1","2026.08.19-1","2026.08.19-1~bpo13+1","2026.10.21-1","2026.10.21-1~bpo13+1"]},{"source":"osv","ecosystem":"Debian:13","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2023.11.16-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2023.11.16-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14"}]}],"versions":["2022.10.4","2022.11.11","2023.1.2","2023.1.6","2023.10.13","2023.10.7","2023.11.13.232715.dev0","2023.11.13.5826.dev0","2023.2.17","2023.3.3","2023.3.4","2023.6.21","2023.6.22","2023.7.6","2023.9.24"]},{"source":"osv","ecosystem":"PyPI","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2022.10.04"},{"fixed":"2023.11.14"}]}],"versions":["2022.10.4","2022.11.11","2023.1.2","2023.1.6","2023.10.13","2023.10.7","2023.11.13.232715.dev0","2023.11.13.5826.dev0","2023.2.17","2023.3.3","2023.3.4","2023.6.21","2023.6.22","2023.7.6","2023.9.24"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2021.12.01-1","2021.12.27-1","2022.01.21-1","2022.02.04-1","2022.03.08.1-1","2022.04.08-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2023.07.06-1","2023.10.13-1ubuntu1","2023.11.16-1","2023.12.30-1ubuntu1","2024.03.10-1","2024.04.09-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.03.27-1","2025.04.30-1","2025.05.22-1","2025.06.09-1","2025.06.25-1","2025.06.30-1","2025.07.21-1","2025.08.11-1","2025.08.20-1","2025.08.22-1","2025.08.27-1","2025.09.05-1","2025.09.23-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2026.03.17-1","2026.06.09-1","2026.07.04-1","2026.08.19-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.09.23-1","2025.10.22-1","2025.11.12-1","2025.12.08-1","2026.01.31-1","2026.03.17-1"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP5","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2023.11.14-bp155.3.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2023.11.14-bp155.3.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"yt-dlp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2023.11.16-1.1"}]}]}],"products":[{"vendor":"yt-dlp","product":"yt-dlp"},{"vendor":"yt-dlp_project","product":"yt-dlp"}],"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb","tags":["x_refsource_MISC","x_transferred","Patch","fix","web","report"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14","tags":["x_refsource_MISC","x_transferred","Release Notes","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46121","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3ch3-jhc6-5r8x","tags":["advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-46121","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46121.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-46121","tags":["advisory"]},{"url":"https://github.com/yt-dlp/yt-dlp","tags":["package"]},{"url":"https://pypi.org/project/yt-dlp","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2023-46121","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-46121","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/6MA5EHVFVH4HRBQQ5KZZ4YVOXJFQUG3W/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1213124","tags":["report"]},{"url":"https://bugzilla.suse.com/1216467","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2023-35934","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2023-46121","tags":["web"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-46121","title":"Generic Extractor MITM Vulnerability in yt-dlp","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`.","status":"published","published":"2023-11-14T23:31:55.145Z","modified":"2024-08-29T15:19:23.948Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-444"],"updated_at":"2026-11-02T14:35:23.309349Z"}],"euvd":[{"id":"EUVD-2023-2858","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`.","status":"published","published":"2023-11-14T23:31:55Z","modified":"2024-08-29T15:19:23Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-03T00:56:07.856103Z"}],"ghsa":[{"id":"GHSA-3ch3-jhc6-5r8x","title":"yt-dlp Generic Extractor MITM Vulnerability via Arbitrary Proxy Injection","description":"### Impact\nThe 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.\n\n\u003cdetails\u003e\n\nTo pass extra control data between extractors (such as headers like `Referer`), yt-dlp employs a concept of \"url smuggling\". This works by adding this extra data as json to the url fragment (\"smuggling\") that is then passed on to an extractor. The receiving extractor then \"unsmuggles\" the data from the input url. This functionality is intended to be internal only.\n\nCurrently, the Generic extractor supports receiving an arbitrary dictionary of HTTP headers in a smuggled url, of which it extracts and adds them to the initial request it makes to such url. This is useful when a url sent to the Generic extractor needs a `Referer` header sent with it, for example.\n\nAdditionally, yt-dlp has internal headers to set a proxy for a request: `Ytdl-request-proxy` and `Ytdl-socks-proxy`. While these are deprecated, internally `Ytdl-request-proxy` is still used for `--geo-verification-proxy`.\n\nHowever, it is possible for a maliciously crafted site include these smuggled options in a url which then the Generic extractor extracts and redirects to itself.  This allows a malicious website to **set an arbitrary proxy for an arbitrary url that the Generic extractor will request.**\n\nThis could allow for the following, but not limited too:\n- An attacker can MITM a request it asks yt-dlp to make to **any** website.\n   - If a user has loaded cookies into yt-dlp for the target site, which are not marked as [secure](https://en.wikipedia.org/wiki/Secure_cookie), they could be exfiltrated by the attacker.\n   - Fortunately most sites are HTTPS and should be setting cookies as secure.\n- An attacker can set cookies for an arbitrary site.\n\nAn example malicious webpage:\n```html\n\u003c!DOCTYPE html\u003e\n\u003ccinerama.embedPlayer('t','{{ target_site }}#__youtubedl_smuggle=%7B%22http_headers%22:%7B%22Ytdl-request-proxy%22:%22{{ proxy url }}%22%7D,%22fake%22:%22.smil/manifest%22%7D')\n```\n\nWhere `{{ target_site }}` is the URL Generic extractor will request and `{{ proxy url }}` is the proxy to proxy the request for this url through.\n\n\u003c/details\u003e\n\n### Patches\n- We have removed the ability to smuggle `http_headers` to the Generic extractor, as well as other extractors that use the same pattern.\n\n### Workarounds\n- Disable Generic extractor (`--ies default,-generic`), or only pass trusted sites with trusted content.\n- Take caution when using `--no-check-certificate`.\n\n### References\n- \u003chttps://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x\u003e\n- \u003chttps://nvd.nist.gov/vuln/detail/CVE-2023-46121\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb\u003e\n","status":"published","published":"2023-11-15T14:48:24Z","modified":"2023-11-15T14:48:25Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-444","CWE-613"],"updated_at":"2026-11-02T14:37:22.040291Z"}],"nvd":[{"id":"CVE-2023-46121","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`.","status":"published","published":"2023-11-15T00:15:09.47Z","modified":"2026-06-17T06:30:11.627Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-444"],"updated_at":"2026-11-02T14:08:47.966245Z"}],"osv":[{"id":"ALPINE-CVE-2023-46121","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`.","status":"published","published":"2023-11-15T00:15:09.47Z","modified":"2026-11-03T06:32:59.460635849Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-03T07:16:09.603409Z"},{"id":"CVE-2023-46121","title":"Generic Extractor MITM Vulnerability in yt-dlp","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`.","status":"published","published":"2023-11-14T23:31:55.145Z","modified":"2026-10-28T02:31:01.412336436Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-444"],"updated_at":"2026-11-02T15:44:34.287121Z"},{"id":"DEBIAN-CVE-2023-46121","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`.","status":"published","published":"2023-11-15T00:15:09.47Z","modified":"2026-10-26T18:01:44.38229768Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:45:40.275853Z"},{"id":"GHSA-3ch3-jhc6-5r8x","title":"yt-dlp Generic Extractor MITM Vulnerability via Arbitrary Proxy Injection","description":"### Impact\nThe 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.\n\n\u003cdetails\u003e\n\nTo pass extra control data between extractors (such as headers like `Referer`), yt-dlp employs a concept of \"url smuggling\". This works by adding this extra data as json to the url fragment (\"smuggling\") that is then passed on to an extractor. The receiving extractor then \"unsmuggles\" the data from the input url. This functionality is intended to be internal only.\n\nCurrently, the Generic extractor supports receiving an arbitrary dictionary of HTTP headers in a smuggled url, of which it extracts and adds them to the initial request it makes to such url. This is useful when a url sent to the Generic extractor needs a `Referer` header sent with it, for example.\n\nAdditionally, yt-dlp has internal headers to set a proxy for a request: `Ytdl-request-proxy` and `Ytdl-socks-proxy`. While these are deprecated, internally `Ytdl-request-proxy` is still used for `--geo-verification-proxy`.\n\nHowever, it is possible for a maliciously crafted site include these smuggled options in a url which then the Generic extractor extracts and redirects to itself.  This allows a malicious website to **set an arbitrary proxy for an arbitrary url that the Generic extractor will request.**\n\nThis could allow for the following, but not limited too:\n- An attacker can MITM a request it asks yt-dlp to make to **any** website.\n   - If a user has loaded cookies into yt-dlp for the target site, which are not marked as [secure](https://en.wikipedia.org/wiki/Secure_cookie), they could be exfiltrated by the attacker.\n   - Fortunately most sites are HTTPS and should be setting cookies as secure.\n- An attacker can set cookies for an arbitrary site.\n\nAn example malicious webpage:\n```html\n\u003c!DOCTYPE html\u003e\n\u003ccinerama.embedPlayer('t','{{ target_site }}#__youtubedl_smuggle=%7B%22http_headers%22:%7B%22Ytdl-request-proxy%22:%22{{ proxy url }}%22%7D,%22fake%22:%22.smil/manifest%22%7D')\n```\n\nWhere `{{ target_site }}` is the URL Generic extractor will request and `{{ proxy url }}` is the proxy to proxy the request for this url through.\n\n\u003c/details\u003e\n\n### Patches\n- We have removed the ability to smuggle `http_headers` to the Generic extractor, as well as other extractors that use the same pattern.\n\n### Workarounds\n- Disable Generic extractor (`--ies default,-generic`), or only pass trusted sites with trusted content.\n- Take caution when using `--no-check-certificate`.\n\n### References\n- \u003chttps://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x\u003e\n- \u003chttps://nvd.nist.gov/vuln/detail/CVE-2023-46121\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb\u003e\n","status":"published","published":"2023-11-15T14:48:24Z","modified":"2026-09-10T03:49:58.753727342Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-444","CWE-613"],"updated_at":"2026-11-02T15:46:35.406455Z"},{"id":"PYSEC-2026-2063","title":"yt-dlp Generic Extractor MITM Vulnerability via Arbitrary Proxy Injection","description":"### Impact\nThe 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.\n\n\u003cdetails\u003e\n\nTo pass extra control data between extractors (such as headers like `Referer`), yt-dlp employs a concept of \"url smuggling\". This works by adding this extra data as json to the url fragment (\"smuggling\") that is then passed on to an extractor. The receiving extractor then \"unsmuggles\" the data from the input url. This functionality is intended to be internal only.\n\nCurrently, the Generic extractor supports receiving an arbitrary dictionary of HTTP headers in a smuggled url, of which it extracts and adds them to the initial request it makes to such url. This is useful when a url sent to the Generic extractor needs a `Referer` header sent with it, for example.\n\nAdditionally, yt-dlp has internal headers to set a proxy for a request: `Ytdl-request-proxy` and `Ytdl-socks-proxy`. While these are deprecated, internally `Ytdl-request-proxy` is still used for `--geo-verification-proxy`.\n\nHowever, it is possible for a maliciously crafted site include these smuggled options in a url which then the Generic extractor extracts and redirects to itself.  This allows a malicious website to **set an arbitrary proxy for an arbitrary url that the Generic extractor will request.**\n\nThis could allow for the following, but not limited too:\n- An attacker can MITM a request it asks yt-dlp to make to **any** website.\n   - If a user has loaded cookies into yt-dlp for the target site, which are not marked as [secure](https://en.wikipedia.org/wiki/Secure_cookie), they could be exfiltrated by the attacker.\n   - Fortunately most sites are HTTPS and should be setting cookies as secure.\n- An attacker can set cookies for an arbitrary site.\n\nAn example malicious webpage:\n```html\n\u003c!DOCTYPE html\u003e\n\u003ccinerama.embedPlayer('t','{{ target_site }}#__youtubedl_smuggle=%7B%22http_headers%22:%7B%22Ytdl-request-proxy%22:%22{{ proxy url }}%22%7D,%22fake%22:%22.smil/manifest%22%7D')\n```\n\nWhere `{{ target_site }}` is the URL Generic extractor will request and `{{ proxy url }}` is the proxy to proxy the request for this url through.\n\n\u003c/details\u003e\n\n### Patches\n- We have removed the ability to smuggle `http_headers` to the Generic extractor, as well as other extractors that use the same pattern.\n\n### Workarounds\n- Disable Generic extractor (`--ies default,-generic`), or only pass trusted sites with trusted content.\n- Take caution when using `--no-check-certificate`.\n\n### References\n- \u003chttps://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x\u003e\n- \u003chttps://nvd.nist.gov/vuln/detail/CVE-2023-46121\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14\u003e\n- \u003chttps://github.com/yt-dlp/yt-dlp/commit/f04b5bedad7b281bee9814686bba1762bae092eb\u003e\n","status":"published","published":"2026-07-07T11:45:26.929022Z","modified":"2026-07-07T17:47:57.107811646Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:55.537808Z"},{"id":"UBUNTU-CVE-2023-46121","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`.","status":"published","published":"2023-11-15T00:15:00Z","modified":"2026-10-17T12:56:42.455990584Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T16:54:22.741943Z"},{"id":"openSUSE-SU-2023:0374-1","title":"Security update for yt-dlp","description":"This update for yt-dlp fixes the following issues:\n\n- Update to release 2023.11.14\n\n  * Security: [CVE-2023-46121] Patch Generic Extractor MITM\n    Vulnerability via Arbitrary Proxy Injection\n  * Disallow smuggling of arbitrary http_headers; extractors now\n    only use specific headers\n\n- Make yt-dlp require the one pythonXX-yt-dlp that /usr/bin/yt-dlp\n  was built with.\n\n- Rework Python build procedure [boo#1216467]\n- Enable Python library [boo#1216467]\n\n- Update to release 2023.10.13\n\n  * youtube: fix some bug with --extractor-retries inf\n\n- Update to release 2023.10.07\n\n  * yt: Fix heatmap extraction\n  * yt: Raise a warning for Incomplete Data instead of an error\n\n- Update to release 2023.09.24\n\n  * Extract subtitles from SMIL manifests\n  * fb: Add dash manifest URL\n  * crunchyroll: Remove initial state extraction\n  * youtube: Add player_params extractor arg\n\n- remove suggests on brotlicffi - this is only for != cpython\n\n- Update to release 2023.07.06\n\n  * Prevent Cookie leaks on HTTP redirect [boo#1213124] [CVE-2023-35934]\n  * yt: Avoid false DRM detection\n  * yt: Process post_live over 2 hours\n  * yt: Support shorts-only playlists\n\n- Update to release 2023.06.22\n\n   * youtube: add IOS to default clients used\n\n- Update to release 2023.06.21\n\n  * Add option --compat-option playlist-match-filter\n  * Add options --no-quiet, option --color, --netrc-cmd, --xff\n  * Auto-select default format in -f-\n  * Improve HTTP redirect handling\n  * Support decoding multiple content encodings\n\n- Use python3.11 on Leap 15.5\n\n  * python3.11 is the only python3 \u003e 3.6 version would be shipped\n    in Leap 15.5\n\n- Update to release 2023.03.04\n\n  * A bunch of extractor fixes\n\n- Update to release 2023.03.03\n\n  * youtube: Construct dash formats with range query\n  * yt: Detect and break on looping comments\n  * yt: Extract channel view_count when /about tab is passed\n\n- Update to release 2023.02.17\n\n  * Merge youtube-dl: Upto commit/2dd6c6e (Feb 17 2023)\n  * Fix --concat-playlist\n  * Imply --no-progress when --print\n  * Improve default subtitle language selection\n  * Make title completely non-fatal\n  * Sanitize formats before sorting\n  * [hls] Allow extractors to provide AES key\n  * [extractor/generic] Avoid catastrophic backtracking in KVS regex\n  * [jsinterp] Support if statements\n  * [plugins] Fix zip search paths\n  * [utils] Don't use Content-length with encoding\n  * [utils] Fix time_seconds to use the provided TZ\n  * [utils] Fix race condition in make_dir\n  * [extractor/anchorfm] Add episode\n  * [extractor/boxcast] Add extractor\n  * [extractor/ebay] Add extractor\n  * [extractor/hypergryph] Add extractor\n  * [extractor/NZOnScreen] Add extractor\n  * [extractor/rozhlas] Add extractor\n  * [extractor/tempo] Add IVXPlayer extractor\n  * [extractor/txxx] Add extractors\n  * [extractor/vocaroo] Add extractor\n  * [extractor/wrestleuniverse] Add extractors\n  * [extractor/yappy] Add extractor\n  * [extractor/youtube] Fix uploader_id extraction\n  * [extractor/youtube] Add hyperpipe instances\n  * [extractor/youtube] Handle consent.youtube\n  * [extractor/youtube] Support /live/ URL\n  * [extractor/youtube] Update invidious and piped instances\n  * [extractor/91porn] Fix title and comment extraction\n  * [extractor/AbemaTV] Cache user token whenever appropriate\n  * [extractor/bfmtv] Support rmc prefix\n  * [extractor/biliintl] Add intro and ending chapters\n  * [extractor/clyp] Support wav\n  * [extractor/crunchyroll] Add intro chapter\n  * [extractor/crunchyroll] Better message for premium videos\n  * [extractor/crunchyroll] Fix incorrect premium-only error\n  * [extractor/DouyuTV] Use new API\n  * [extractor/embedly] Embedded links may be for other extractors\n  * [extractor/freesound] Workaround invalid URL in webpage\n  * [extractor/GoPlay] Use new API\n  * [extractor/Hidive] Fix subtitles and age-restriction\n  * [extractor/huya] Support HD streams\n  * [extractor/moviepilot] Fix extractor\n  * [extractor/nbc] Fix NBC and NBCStations extractors\n  * [extractor/nbc] Fix XML parsing\n  * [extractor/nebula] Remove broken cookie support\n  * [extractor/nfl] Add NFLPlus extractor\n  * [extractor/niconico] Add support for like history\n  * [extractor/nitter] Update instance list by OIRNOIR\n  * [extractor/npo] Fix extractor and add HD support\n  * [extractor/odkmedia] Add OnDemandChinaEpisodeIE\n  * [extractor/pornez] Handle relative URLs in iframe\n  * [extractor/radiko] Fix format sorting for Time Free\n  * [extractor/rcs] Fix extractors\n  * [extractor/reddit] Support user posts\n  * [extractor/rumble] Fix format sorting\n  * [extractor/servus] Rewrite extractor\n  * [extractor/slideslive] Fix slides and chapters/duration\n  * [extractor/SportDeutschland] Fix extractor\n  * [extractor/Stripchat] Fix extractor\n  * [extractor/tnaflix] Fix extractor\n  * [extractor/tvp] Support stream.tvp.pl\n  * [extractor/twitter] Fix --no-playlist and add media\n    view_count when using GraphQL\n  * [extractor/twitter] Fix graphql extraction on some tweets\n  * [extractor/vimeo] Fix playerConfig extraction\n  * [extractor/viu] Add ViuOTTIndonesiaIE extractor\n  * [extractor/vk] Fix playlists for new API\n  * [extractor/vlive] Replace with VLiveWebArchiveIE\n  * [extractor/ximalaya] Update album _VALID_URL\n  * [extractor/zdf] Use android API endpoint for UHD downloads\n  * [youtube] Improve description extraction\n  * [youtube] Prevent excess HTTP 301\n  * [bellmedia] Add support for cp24.com clip URLs","status":"published","published":"2023-11-18T19:00:58Z","modified":"2026-02-04T04:28:34.957217Z","updated_at":"2026-11-02T16:58:32.653274Z"},{"id":"openSUSE-SU-2024:13435-1","title":"python310-yt-dlp-2023.11.16-1.1 on GA media","description":"These are all security issues fixed in the python310-yt-dlp-2023.11.16-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:35:41.526305Z","updated_at":"2026-11-02T16:58:36.327643Z"}]}}
