p PatchFirst

CVE-2025-57752

CVE-2025-57752 · Next.js Affected by Cache Key Confusion for Image Optimization API Routes

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

Next.js is a React framework for building full-stack web applications. In versions before 14.2.31 and from 15.0.0 to before 15.4.5, Next.js Image Optimization API routes are affected by cache key confusion. When images returned from API routes vary based on request headers (such as Cookie or Authorization), these responses could be incorrectly cached and served to unauthorized users due to a cache key confusion bug. This vulnerability has been fixed in Next.js versions 14.2.31 and 15.4.5. All users are encouraged to upgrade if they use API routes to serve images that depend on request headers and have image optimization enabled.

CVSS 6.2 · Mittel · EPSS 0,3% · Korrektur verfügbar

Veröffentlicht
Aktualisiert

Technologie-Stack: node

Betroffene Produkte und Versionen

  • next.js

    Softwareversionen
    • >= 15.0.0, < 15.4.5: Betroffen
    • < 14.2.31: Betroffen

    Keine Korrektur veröffentlicht

  • next npm

    Betroffene Versionsbereiche
    • SEMVER: ≥ 0.9.9, < 14.2.31

    Auf 14.2.31 aktualisieren

  • next npm

    Betroffene Versionsbereiche
    • SEMVER: ≥ 15.0.0, < 15.4.5

    Auf 15.4.5 aktualisieren

Originalquellen

Prüfen Sie Ihren Server →