GHSA-69qj-pvh9-c5wg: yt-dlp: Arbitrary command injection possible if --exec option used with yt-dlp
yt-dlp’s --exec option is vulnerable to arbitrary command injection when handling untrusted metadata if the argument uses standard string formatting (e.g. %(title)s) or other unsafe conversions. An attacker could achieve remote code execution on the user’s machine via maliciously crafted metadata containing quotes or other special shell characters.
References
- github.com/advisories/GHSA-69qj-pvh9-c5wg
- github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.06.234447
- github.com/yt-dlp/yt-dlp/commit/5faffa999fd33b373d47773e8ee639d072accec2
- github.com/yt-dlp/yt-dlp/pull/16883
- github.com/yt-dlp/yt-dlp/releases/tag/2026.06.09
- github.com/yt-dlp/yt-dlp/security/advisories/GHSA-69qj-pvh9-c5wg
Code Behaviors & Features
Detect and mitigate GHSA-69qj-pvh9-c5wg with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →