GHSA-9g9p-9gw9-jx7f

Suggest an improvement
Source
https://github.com/advisories/GHSA-9g9p-9gw9-jx7f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9g9p-9gw9-jx7f/GHSA-9g9p-9gw9-jx7f.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-9g9p-9gw9-jx7f
Aliases
Downstream
CGA (10)
MINI (1)
Published
2026-01-27T19:18:25Z
Modified
2026-07-17T21:13:25Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
Details

A DoS vulnerability exists in self-hosted Next.js applications that have remotePatterns configured for the Image Optimizer. The image optimization endpoint (/_next/image) loads external images entirely into memory without enforcing a maximum size limit, allowing an attacker to cause out-of-memory conditions by requesting optimization of arbitrarily large images. This vulnerability requires that remotePatterns is configured to allow image optimization from external domains and that the attacker can serve or control a large image on an allowed domain.

Strongly consider upgrading to 15.5.10 and 16.1.5 to reduce risk and prevent availability issues in Next applications.

Database specific
{
    "cwe_ids":  [
        "CWE-400",
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-01-27T19:18:25Z",
    "nvd_published_at":  "2026-01-26T22:15:52Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
10.0.0
Fixed
15.5.10

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9g9p-9gw9-jx7f/GHSA-9g9p-9gw9-jx7f.json"

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
15.6.0-canary.0
Fixed
16.1.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9g9p-9gw9-jx7f/GHSA-9g9p-9gw9-jx7f.json"