megachangelog
Securityv15.4.5, v14.2.31

CVE-2025-55173: Image Optimization arbitrary file download vulnerability patched

A vulnerability in Next.js Image Optimization allowed attacker-controlled external image servers to trigger arbitrary file downloads with attacker-defined filenames and content under certain configurations. The issue has been patched in v15.4.5 and v14.2.31 by updating image optimizer logic to avoid misusing upstream Content-Type headers.

Summary

Impact

Resolution

Credit

References

A vulnerability affecting has been addressed. It impacted versions prior to and , and involved a scenario where attacker-controlled external image servers could serve crafted responses that result in arbitrary file downloads with attacker-defined filenames and content.Next.js Image Optimizationv15.4.5v14.2.31

Your Vercel deployments are safe by default. A patch applied on July 29th, 2025 eliminated exposure for all Vercel-hosted customers. Self-hosted deployments should upgrade to v15.4.5 or v14.2.31 to remediate the issue.

Under certain configurations ( or permissive ), a malicious actor could:images.domainsimages.remotePatterns

This issue requires that:

The issue was resolved by updating the image optimizer logic to avoid falling back to the upstream’s header when magic number detection fails. This ensures that responses are only cached when confidently identified as image content and do not mistakenly reuse cache keys for user-specific responses.Content-Type

The fix was included in:

Thanks to for the responsible disclosure.kristianmagas

Read more

  • Trigger the download of a file from a Next.js app with attacker-controlled content and filename

  • Exploit this behavior for phishing, drive-by downloads, or social engineering scenarios

  • The target app has external image domains or patterns configured

  • The remote server is attacker-controlled or attacker-influenced

  • A user is tricked into clicking a crafted URL

  • Next.js v15.4.5

  • Next.js v14.2.31

securitycveimage-optimizationnext.jsvulnerability

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement2026.10.19

Updates to Hobby and Pro Terms of Service

Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.

termsbillingcreditspolicylegal
Announcement

Mercury 3 now available on AI Gateway

Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.

ai-gatewaymodelsinferencellmlaunch
Announcement

MiniMax M3.1 Flash now available on AI Gateway for free

MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.

ai-gatewaymodelscodingagentsapi
See all Vercel changes →