Security context

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

remotion-dev/remotion
main @ 387658b
16
Fixes
2
CVEs
CRITICAL
Peak severity
27.3%
Coverage
Highlights
Denial of Service: 5 prior fixes. Scrutinize any change in this area.
@remotion/lambda: most-fixed (1 issue). Treat as high-risk during review.
4 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.

Path Traversal: Attackers can bypass input validation to write arbitrary files or overwrite system files on the host during asset rendering, a pattern also illustrated by CVE-2026-30121. Proper path canonicalization and prefix validation are required before executing file writes.
Auth Bypass: Deploying serverless endpoints with public-read permissions or allowing unauthenticated service invocation compromises private media assets and exposes rendering infrastructure to unauthorized execution and financial exhaustion.
Denial of Service: Unsafe panic-propagation ('unwrap' calls), manual memory leaks via 'std::mem::forget', and failure to properly close write streams or evict duplicate keys can cause process crashes and exhaust system memory or file descriptors under load.