Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M
CVE-2026-55404yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output
High 7.5
In plain English
A high-severity injection 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.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | yt-dlp | no fix listed | DEBIAN-CVE-2026-55404 |
| Debian:13 | yt-dlp | no fix listed | DEBIAN-CVE-2026-55404 |
| Debian:14 | yt-dlp | 2026.07.04-1 | DEBIAN-CVE-2026-55404 |
| PyPI | yt-dlp | 2026.7.4 | GHSA-6v4j-43gg-vj32 |
| PyPI | yt-dlp | 2026.7.4 | PYSEC-2026-3622 |
| Ubuntu:22.04:LTS | youtube-dl | no fix listed | UBUNTU-CVE-2026-55404 |
| Ubuntu:22.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2026-55404 |
| Ubuntu:24.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2026-55404 |
| Ubuntu:25.10 | yt-dlp | no fix listed | UBUNTU-CVE-2026-55404 |
| Ubuntu:26.04:LTS | yt-dlp | no fix listed | UBUNTU-CVE-2026-55404 |
| Ubuntu:26.10 | yt-dlp | no fix listed | UBUNTU-CVE-2026-55404 |
Affected products (as reported)
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-6v4j-43gg-vj32 x_refsource_CONFIRM
- https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789 x_refsource_MISC
- https://github.com/yt-dlp/yt-dlp/releases/tag/2026.07.04 x_refsource_MISC