Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. yt-dlp
  4. ›
  5. CVE-2026-26331

CVE-2026-26331: yt-dlp: Arbitrary Command Injection when using the `--netrc-cmd` option

February 23, 2026

When yt-dlp’s --netrc-cmd command-line option (or netrc_cmd Python API parameter) is used, an attacker could achieve arbitrary command injection on the user’s system with a maliciously crafted URL.

References

  • github.com/advisories/GHSA-g3gw-q23r-pgqm
  • github.com/yt-dlp/yt-dlp
  • github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a
  • github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21
  • github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm
  • nvd.nist.gov/vuln/detail/CVE-2026-26331

Code Behaviors & Features

Detect and mitigate CVE-2026-26331 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 2023.06.21 before 2026.02.21

Fixed versions

  • 2026.02.21

Solution

Upgrade to version 2026.02.21 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/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/CVE-2026-26331.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 24 Feb 2026 12:19:49 +0000.