Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

ytdl-org/youtube-dl
master @ 956b8c5
2
Fixes
1
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Format String Injection: 1 prior fix. Scrutinize any change in this area.
youtube_dl/YoutubeDL.py: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Attackers can exploit unsanitized file extensions during video processing to write arbitrary files or traverse directories via manipulated paths. Developers should enforce strict extension allowlists and perform path canonicalization.
Format String Injection: Untrusted video filenames containing Python format specifiers can lead to denial of service or information leakage if directly evaluated inside logging templates. Formatting must be separated from translation templates.
Cookie Leakage: Sensitive authentication cookies can be leaked to unauthorized third-party domains if redirect requests do not properly clear or restrict session headers.