Yt-dlp
yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by NVD · CWE-74
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
yt-dlp yt-dlp
- < 2026.7.4
Fixed in 2026.7.4
Mitigation
Upgrade yt-dlp to 2026.7.4 or later.
References
- Vendor advisory github.com/yt-dlp/yt-dlp/security/advisories/G…
- Patch github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808…
- Release notes github.com/yt-dlp/yt-dlp/releases/tag/2026.07.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.