Description
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.
Affected products
yt-dlp_project: yt-dlp
References3
- github.com/yt-dlp/yt-dlp/security/advisories/GHSA-6v4j-43gg-vj32 MitigationVendor Advisory
- github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae… Patch
- github.com/yt-dlp/yt-dlp/releases/tag/2026.07.04 ProductRelease Notes
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 51 · as of 15 November 2026
- CWE
- CWE-74
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.