8.8

CVE-2026-26331: yt-dlp_project yt-dlp OS Command Injection

CVSS: 8.8v3.1HighAnalyzed
AliasesMGASA-2026-0054GHSA-g3gw-q23r-pgqmPYSEC-2026-3432
Published 24-02-2026Last modified 24-02-2026

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.

Overall risk
46/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
2.06%
0%100%
Low · +0.46 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 24-02-2026
    PublishedVulnerability first disclosed.
  2. 24-02-2026
    Last 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

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

21-09-202621-10-2026
EPSS score
2.06%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Yt Dlp

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
Show all 13 references