CVE-2023-35934
Python vulnerability analysis and mitigation

Overview

CVE-2023-35934 affects yt-dlp, a command-line program for downloading videos from various online platforms. The vulnerability was discovered in July 2023 and affects all versions prior to 2023.07.06 and nightly builds before 2023.07.06.185519. The issue also impacts related projects youtube-dl (since version 2015.01.25) and youtube-dlc (GHSA Advisory).

Technical details

During file downloads, yt-dlp or its external downloaders may leak cookies on HTTP redirects to different hosts, or when download fragment hosts differ from their parent manifest's host. At the file download stage, cookies are passed as a Cookie header without proper scoping, allowing the downloader to send cookies indiscriminately to unintended domains or paths. The vulnerability has a CVSS v3.1 base score of 8.2 HIGH (NIST) and 6.1 MEDIUM (GitHub) (NVD).

Impact

An attacker could potentially craft a malicious website with an embedded URL designed to be detected by yt-dlp as a video download. When this URL redirects to an attacker-controlled server, yt-dlp would forward the user's sensitive cookie information, potentially exposing authentication tokens or other sensitive data (GHSA Advisory).

Mitigation and workarounds

The issue is fixed in yt-dlp version 2023.07.06 and nightly build 2023.07.06.185519. The fix includes removing Cookie headers upon HTTP redirects, implementing proper cookie scoping, and improving how cookies are handled by external downloaders. For users unable to upgrade, workarounds include: avoiding cookie usage and authentication methods, using curl as the external downloader, avoiding fragmented formats like HLS/m3u8 and DASH/mpd, or verifying download links' integrity before use (GHSA Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21441HIGH8.9
  • PythonPython
  • urllib3
NoYesJan 07, 2026
CVE-2026-21851MEDIUM5.3
  • PythonPython
  • monai
NoNoJan 07, 2026
GHSA-f2mf-q878-gh58MEDIUM5.3
  • PythonPython
  • parsl
NoYesJan 06, 2026
CVE-2026-21883MEDIUM4.5
  • PythonPython
  • bokeh
NoYesJan 08, 2026
CVE-2026-22041LOW2
  • PythonPython
  • loggingredactor
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management