{"cve":"CVE-2026-26331","nvd":{"published":"2026-02-24T03:16:01.710","modified":"2026-06-17T10:26:06.463","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-78"],"references":["https://github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a","https://github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21","https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm"],"products":["yt-dlp_project:yt-dlp"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-26331","score":0.0182,"percentile":0.78743,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-g3gw-q23r-pgqm","url":"https://osv.dev/vulnerability/GHSA-g3gw-q23r-pgqm","summary":"yt-dlp: Arbitrary Command Injection when using the `--netrc-cmd` option","modified":"2026-07-13T16:42:37.419500934Z","packages":[{"ecosystem":"PyPI","name":"yt-dlp","purl":"pkg:pypi/yt-dlp","ranges":[">=2023.06.21 <2026.02.21"],"fixed":["2026.02.21"]}]},{"id":"PYSEC-2026-3432","url":"https://osv.dev/vulnerability/PYSEC-2026-3432","summary":"yt-dlp: Arbitrary Command Injection when using the `--netrc-cmd` option","modified":"2026-07-13T16:32:47.146889214Z","packages":[{"ecosystem":"PyPI","name":"yt-dlp","purl":"pkg:pypi/yt-dlp","ranges":[">=2023.06.21 <2026.02.21"],"fixed":["2026.02.21"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}