Next.js Security Update: Critical DoS and Source Code Exposure Vulnerabilities Fixed
Key Points
- Critical DoS vulnerability can hang Next.js servers with crafted requests
- Source code exposure risk for Server Functions in App Router apps
- Immediate upgrade required - no workarounds available
Summary
Next.js has released security patches addressing two vulnerabilities in React Server Components (RSC) protocol affecting App Router applications. These issues stem from upstream React vulnerabilities and require immediate updates.
Key Points
- Denial of Service (CVE-2025-55184/CVE-2025-67779): High severity vulnerability allowing crafted HTTP requests to cause infinite loops, hanging server processes
- Source Code Exposure (CVE-2025-55183): Medium severity issue enabling attackers to retrieve compiled source code of Server Functions, potentially exposing business logic and secrets
- Affected versions: Next.js >=13.3 with App Router using React Server Components
- Pages Router applications: Not affected but upgrade still recommended
- No workaround available: Upgrading to patched versions is mandatory
Required Actions
- Upgrade to latest patched version in your release line
- Use
npx fix-react2shell-nextfor automated version checking and upgrades - Note: Initial CVE-2025-55184 fix was incomplete; re-upgrade if you previously patched
Fixed Versions
- 14.x: 14.2.35
- 15.0.x: 15.0.7
- 15.1.x: 15.1.11
- 15.2.x: 15.2.8
- 15.3.x: 15.3.8
- 15.4.x: 15.4.10
- 15.5.x: 15.5.9
- 16.0.x: 16.0.10