Skip to content

Kompile Learn

Framework versions with critical advisories

Some Next.js versions let attackers skip middleware login checks or run code on your server. Upgrade to the patched release.

What it is

Kompile reads the Next.js version your site ships to browsers and compares it with the fixed versions for CVE-2025-29927 (middleware bypass) and CVE-2025-55182 (React Server Components remote code execution).

Why it matters

Both have public, automated exploits. Kompile only reads the version number; it never sends an exploit.

How to fix it

npm

npm install next@latest react@latest react-dom@latest

The middleware bypass mainly affects self-hosted apps (next start, Docker). Upgrade anyway: it is a patch release.

Does your site have this problem?

Kompile Scan checks for this and the other problems in these guides in under a minute. Free for one site.

Check my site