Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. yt-dlp
  4. ›
  5. GHSA-69qj-pvh9-c5wg

GHSA-69qj-pvh9-c5wg: yt-dlp: Arbitrary command injection possible if --exec option used with yt-dlp

June 16, 2026

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 →

Affected versions

All versions starting from 2021.4.11 before 2026.6.9

Fixed versions

  • 2026.6.9

Solution

Upgrade to version 2026.6.9 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/yt-dlp/GHSA-69qj-pvh9-c5wg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 17 Jun 2026 12:18:58 +0000.