{"id":"CVE-2026-55404","published":"2026-07-08T19:36:48Z","modified":"2026-07-09T14:41:17Z","title":"yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output","vendor":"yt-dlp","product":"yt-dlp","tier":"tail","description":{"text":"yt-dlp and youtube-dl are command-line audio/video downloaders. Prior to 2026.7.4, the --write-link, --write-url-link, and --write-desktop-link options can write .url or .desktop shortcut files using attacker-controlled webpage_url or filename metadata without sufficient validation or escaping, allowing malicious file:// URI injection on Windows or newline-based desktop entry key injection on Linux that can execute commands if the generated shortcut is opened. This issue is fixed in version 2026.7.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0064,"percentile":0.51612,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-6v4j-43gg-vj32","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789","tags":["x_refsource_MISC"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2026.07.04","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.32},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"yt-dlp","affectedVersions":[{"vendor":"yt-dlp","product":"yt-dlp","versions":["< 2026.7.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T14:31:16.287811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"yt-dlp","vulnerableRanges":["<2026.7.4"],"patched":["2026.7.4"],"from":["GHSA-6v4j-43gg-vj32","PYSEC-2026-3622"],"provenance":"source"}],"summary":{"text":"The yt-dlp command-line downloader contains a flaw in its --write-link, --write-url-link, and --write-desktop-link options, which write .url or .desktop shortcut files using webpage_url or filename metadata without adequate validation or escaping. An attacker who can get a user to download content from a malicious page, and who then gets the user to open the generated shortcut, could inject a file:// URI on Windows or newline-based desktop entry keys on Linux to execute commands, which requires user interaction and affects versions before 2026.7.4.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:15Z"},"euvd":{"id":"EUVD-2026-42368","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yt-dlp-cve-2023-40581","parents":[{"from":"CVE-2024-22423","to":"CVE-2026-55404","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["yt_dlp/YoutubeDL.py","yt_dlp/utils/_utils.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/de015e930747165dbb8fcd360f8775fd973b7d6e","https://github.com/yt-dlp/yt-dlp/commit/ff07792676f404ffff6ee61b5638c9dc1a33a37a","https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789","https://github.com/yt-dlp/yt-dlp/commit/6fc85f617a5850307fd5b258477070e6ee177796"],"basis":"shared function","functions":["create_key"]}]},{"from":"CVE-2024-38519","to":"CVE-2026-55404","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["yt_dlp/YoutubeDL.py","yt_dlp/options.py","yt_dlp/utils/_utils.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a","https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789","https://github.com/yt-dlp/yt-dlp/commit/6fc85f617a5850307fd5b258477070e6ee177796"],"basis":"shared function","functions":["YoutubeDL","_alias_callback"]}]},{"from":"CVE-2026-50023","to":"CVE-2026-55404","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["yt_dlp/YoutubeDL.py","yt_dlp/utils/_utils.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/e578e265f7c6ca94a74b30e0d8d6196a4d19fb6a","https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789","https://github.com/yt-dlp/yt-dlp/commit/6fc85f617a5850307fd5b258477070e6ee177796"],"basis":"shared function","functions":["_write_link_file"]}]}],"packageHistory":[{"cve":"CVE-2026-50019","published":"2026-06-23","fixed":"2026.6.9","kev":false,"link":{"from":"CVE-2026-50019","to":"CVE-2026-55404","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:yt-dlp","fromFixed":"2026.6.9","toFixed":"2026.7.4","daysApart":15},{"kind":"same-code","provenance":"machine","files":["yt_dlp/utils/_utils.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/2726572520238356bcf64aba2040228648b44c82","https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789","https://github.com/yt-dlp/yt-dlp/commit/6fc85f617a5850307fd5b258477070e6ee177796"],"basis":"shared file"}]}},{"cve":"CVE-2026-50023","published":"2026-06-23","fixed":"2026.6.9","kev":false},{"cve":"CVE-2026-50574","published":"2026-06-23","fixed":"2026.6.9","kev":false},{"cve":"CVE-2026-55404","published":"2026-07-08","fixed":"2026.7.4","kev":false}],"package":"PyPI:yt-dlp"}}