Next.js Server-Side Request Forgery in Server Actions
A flaw in Next.js Server Actions allows attackers to trick the server into making requests by manipulating the Host header and triggering redirects, making it appear the server itself is the requester. This matters because it can expose internal services or resources that should only be accessible from within the network.
SSRF vulnerability in Next.js Server Actions triggered via Host header manipulation combined with relative path redirects (starting with /). Requires self-hosted Next.js deployment using Server Actions that perform redirects; attacker can forge requests appearing to originate from the application server, potentially accessing internal endpoints or exfiltrating sensitive data. Fixed in Next.js 14.1.1.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →