cloudflare / vinext

fix: validate image optimization content types and width bounds (#101)
- Add Content-Security-Policy and X-Content-Type-Options headers to image responses - Validate Content-Type allowlist (reject SVG, HTML, non-image types) - Bound width parameter to configured deviceSizes/imageSizes with 3840px max - Add deviceSizes and imageSizes to NextConfig type - Apply to all image paths: Workers, Node.js prod server (App + Pages Router) - Fix benchmarks limit param NaN handling
Steve Faulkner Steve Faulkner committed on Feb 26, 2026, 05:08 AM
Showing 8 changed files +386 additions -27 deletions
Browse files at this commit โ†’