PoC Monitor
← All CVEs
CVE-2025-57822published 29 Aug 2025 21:33 UTCData: JSON · API

Next.js

Next.js Improper Middleware Redirect Handling Leads to SSRF

Next.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function.

First public PoC 3.4 daysafter publication · 2 Sep 2025 · nuclei template
Public PoCs10 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS8.2high · scored by NVD · CWE-918
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

vercel next.js
  • < 14.2.32
  • < 15.4.7

Fixed in 14.2.32, 15.4.7

Mitigation

Upgrade next.js to 14.2.32 or 15.4.7 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published29 Aug 2025 · t = 0First public PoC2 Sep 2025 · t+3.4d

First public PoC 3.4 days after publication; not in CISA KEV. First PoC: nuclei template: Next.js Middleware - Server-Side Request Forgery (nuclei template, 2 Sep 2025).

PoC repositories

Found on GitHub.

No PoC repositories found yet.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Next.js Middleware - Server-Side Request Forgery2 Sep 202516 Nov 2026