CVE-2026-26331: yt-dlp_project yt-dlp OS Command Injection
Vulnerability summary
CVE-2026-26331 is a high (CVSS 8.8) OS Command Injection vulnerability in yt-dlp_project yt-dlp. EPSS estimates a 2.06% chance of exploitation in the next 30 days, higher than 81.1% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 24-02-2026PublishedVulnerability first disclosed.
- 24-02-2026Last modifiedVulnerability information updated.
Description
yt-dlp is a command-line audio/video downloader. Starting in version 2023.06.21 and prior to version 2026.02.21, 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. yt-dlp maintainers assume the impact of this vulnerability to be high for anyone who uses `--netrc-cmd` in their command/configuration or `netrc_cmd` in their Python scripts. Even though the maliciously crafted URL itself will look very suspicious to many users, it would be trivial for a maliciously crafted webpage with an inconspicuous URL to covertly exploit this vulnerability via HTTP redirect. Users without `--netrc-cmd` in their arguments or `netrc_cmd` in their scripts are unaffected. No evidence has been found of this exploit being used in the wild. yt-dlp version 2026.02.21 fixes this issue by validating all netrc "machine" values and raising an error upon unexpected input. As a workaround, users who are unable to upgrade should avoid using the `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter), or they should at least not pass a placeholder (`{}`) in their `--netrc-cmd` argument.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.06%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
+0.46 pp
From 1.60% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundYt Dlp
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- yt-dlpAll versions (No fix recorded) | < 2026.02.21-1
Mageia1 product
- yt-dlp< 2026.03.03-1.1.mga9
PyPI1 product
- yt-dlp≥ 2023.06.21, < 2026.02.21
Ubuntu1 product
- yt-dlpAll versions (No fix recorded)
Yt-dlp1 product
- yt-dlp≥ 2023.06.21, < 2026.02.21
Yt-dlp_project1 product
- yt-dlp≥ 2023.06.21, < 2026.02.21
6 vendors · 6 products
References
13 links- github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqmX Refsource CONFIRMAdvisoryWEBREPORTExploitMitigationVendor Advisory
- github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1aX Refsource MISCWEBREPORTPatch
- github.com/yt-dlp/yt-dlpPACKAGE
- pypi.org/project/yt-dlpPACKAGE