Security context

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

alexta69/metube
master @ 7938837
11
Fixes
0
CVEs
CRITICAL
Peak severity
57.1%
Coverage
Highlights
SSRF: 5 prior fixes. Scrutinize any change in this area.
app/url_guard.py: most-fixed (5 issues). Treat as high-risk during review.
11 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

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

SSRF: Most frequently fixed class with 5 patches, each closing a distinct bypass (IPv6 transition, loopback, connect-time rebinding, fail-closed, ingress validation). The sink is the yt-dlp generic extractor and socket.getaddrinfo, making it the highest-risk surface for internal network access.
Path Traversal: Three fixes spanning input validation (custom_name_prefix, chapter_template) and resolved-path containment (_ConfinedYoutubeDL). The critical fix at prepare_filename is the chokepoint, but sibling paths like playlist/channel title handling remain risk.
CORS Misconfiguration: Two fixes replaced wildcard origin reflection and Socket.IO wildcard with explicit allowlists. Credentialed requests with wildcard origin are a classic high-severity issue; the allowlist must be maintained as the default-deny posture.