CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (8.8) in yt-dlp project yt-dlp. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in yt-dlp 2026.02.21.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hyt-dlp (PyPI): fixed in 2026.02.21Explain CVE-2026-26331 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-26331?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-26331?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-26331 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| yt-dlp_project:yt-dlp | from 2023.06.21 before 2026.02.21 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-g3gw-q23r-pgqm | PyPI | yt-dlp | >=2023.06.21 <2026.02.21 | 2026.02.21 |
| PYSEC-2026-3432 | PyPI | yt-dlp | >=2023.06.21 <2026.02.21 | 2026.02.21 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | yt-dlp | no fix listed | DEBIAN-CVE-2026-26331 |
| Debian | 14 | yt-dlp | 2026.02.21-1 | DEBIAN-CVE-2026-26331 |
| Ubuntu | 22.04:LTS, 24.04:LTS, 25.10 and 2 more | yt-dlp | no fix listed | UBUNTU-CVE-2026-26331 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Important.
This is an IMPORTANT arbitrary command injection flaw in yt-dlp. The vulnerability occurs when the `--netrc-cmd` command-line option or `netrc_cmd` Python API parameter is actively used. Systems where this specific feature is not enabled or utilized are not affected by this issue.
To mitigate this issue, avoid using the `--netrc-cmd` command-line option or the `netrc_cmd` Python API parameter. If the `--netrc-cmd` option is essential for your workflow, ensure that a placeholder (`{}`) is not passed in the argument. Disabling this feature may impact workflows that rely on custom netrc command execution.
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-26331.
Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.