next is vulnerable to Server-Side Request Forgery (SSRF)
83
High Risk
The next Image Optimization API fetches remote images when images.remotePatterns allows the host. Before connecting, it resolves the hostname and rejects private addresses, then fetches the URL with a second DNS lookup. A hostname whose DNS record changes after that check can make the server request a private address and return the response. The fix pins the connection to the addresses that were already checked.
You are affected if you are using a version that falls within the vulnerable range and your application configures images.remotePatterns.
next is vulnerable to Server-Side Request Forgery (SSRF) in versions 16.0.0 - 16.3.7.
Upgrade the next library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.