Uncontrolled Recursion Affecting next package, versions >=10.0.0 <14.2.7>=15.0.0-canary.0 <15.0.0-canary.109


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NEXT-8186172
  • published15 Oct 2024
  • disclosed14 Oct 2024
  • creditBrandon Dahler, Dimitrios Vlastaras

Introduced: 14 Oct 2024

CVE-2024-47831  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

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

Overview

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.

Workaround

Ensure that the next.config.js file has either images.unoptimized, images.loader or images.loaderFile assigned.

References

CVSS Scores

version 4.0
version 3.1