next@14.2.5 vulnerabilities

The React Framework

Direct Vulnerabilities

Known vulnerabilities in the next package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Uncontrolled Recursion

next is a react framework.

Affected versions of this package are vulnerable to Uncontrolled Recursion through the image optimization feature. An attacker can cause excessive CPU consumption by exploiting this vulnerability.

How to fix Uncontrolled Recursion?

Upgrade next to version 14.2.7, 15.0.0-canary.109 or higher.

>=10.0.0 <14.2.7 >=15.0.0-canary.0 <15.0.0-canary.109
  • H
Acceptance of Extraneous Untrusted Data With Trusted Data

next is a react framework.

Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data by sending a crafted HTTP request, which allows the attacker to poison the cache of a non-dynamic server-side rendered route in the page router. This will coerce the request to cache a route that is meant to not be cached and send a Cache-Control: s-maxage=1, a stale-while-revalidate header, which some upstream CDNs may cache as well.

Note:

This is only vulnerable if:

  1. The user is using pages router

  2. The user is using non-dynamic server-side rendered routes.

Users are not affected if:

  1. They are using the app router

  2. The deployments are on Vercel

How to fix Acceptance of Extraneous Untrusted Data With Trusted Data?

Upgrade next to version 13.5.7, 14.2.10 or higher.

>=13.5.1 <13.5.7 >=14.0.0 <14.2.10