Problem
filepath.Base runs before url.PathUnescape (downloader.go:321). A URL ending in %2f..%2f.. segments unescapes to ../.., so filepath.Join(OutputDir, name) escapes the output directory and writes the file elsewhere.
Impact
Files can be written outside OutputDir — a path-traversal write.
Reproduction (verified)
A crafted URL landed a file in the parent of OutputDir.
Suggested fix
Sanitize after unescaping: reject path separators and .. segments in the derived name.