GHSA-5j59-xgg2-r9c4: Next Denial of Service Vulnerability

HIGH
CVSS 7.5
CWE-502 CWE-400 CWE-1395
Published
Advisory Summary

GHSA-5j59-xgg2-r9c4 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Next libraries in the npm ecosystem. The issue involves next has a denial of service with server components - incomplete fix follow-up. Remediation is available by upgrading affected packages to version 16.0.10, 16.1.0-canary.19, 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60.

GHSA-5j59-xgg2-r9c4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5j59-xgg2-r9c4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-5j59-xgg2-r9c4

To remediate this vulnerability, upgrade all affected Next dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

next fixed: 16.0.10
npm install next@16.0.10
next fixed: 16.1.0-canary.19
npm install next@16.1.0-canary.19
next fixed: 14.2.35
npm install next@14.2.35
next fixed: 15.0.7
npm install next@15.0.7
next fixed: 15.1.11
npm install next@15.1.11
next fixed: 15.2.8
npm install next@15.2.8
next fixed: 15.3.8
npm install next@15.3.8
next fixed: 15.4.10
npm install next@15.4.10
next fixed: 15.5.9
npm install next@15.5.9
next fixed: 15.6.0-canary.60
npm install next@15.6.0-canary.60
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls next

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-5j59-xgg2-r9c4, inspect your project dependencies using npm:

npm ls next

Analyze the terminal output to locate any version of Next in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.0.10), your application is affected.

Note: The npm ls next command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Next, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

It was discovered that the fix for [CVE-2025-55184](https://github.com/advisories/GHSA-2m3v-v2m8-q956) in React Server Components was incomplete and did not fully mitigate denial-of-service conditions across all payload types. As a result, certain crafted inputs could still trigger excessive resource consumption. This vulnerability affects React versions 19.0.2, 19.1.3, and 19.2.2, as well as frameworks that bundle or depend on these versions, including Next.js 13.x, 14.x, 15.x, and 16.x when using the App Router. The issue is tracked upstream as [CVE-2025-67779](https://www.cve.org/CVERecord?id=CVE-2025-67779). A malicious actor can send a specially crafted HTTP request to a Server Function endpoint that, when deserialized, causes the React Server Components runtime to enter an infinite loop. This can lead to sustained CPU consumption and cause the affected server process to become unresponsive, resulting in a denial-of-service condition in unpatched environments.

GHSA-5j59-xgg2-r9c4 Affected Next Versions

10 component(s)
Fixed Versions:
16.0.1016.1.0-canary.1914.2.3515.0.715.1.1115.2.815.3.815.4.1015.5.915.6.0-canary.60
Product / Package Ecosystem Affected Versions Fixed Version
next
npm
≥ 16.0.9
< 16.0.10
16.0.10
next
npm
≥ 16.1.0-canary.17
< 16.1.0-canary.19
16.1.0-canary.19
next
npm
≥ 13.3.1-canary.0
< 14.2.35
14.2.35
next
npm
≥ 15.0.6
< 15.0.7
15.0.7
next
npm
≥ 15.1.10
< 15.1.11
15.1.11
next
npm
≥ 15.2.7
< 15.2.8
15.2.8
next
npm
≥ 15.3.7
< 15.3.8
15.3.8
next
npm
≥ 15.4.9
< 15.4.10
15.4.10
next
npm
≥ 15.5.8
< 15.5.9
15.5.9
next
npm
≥ 15.6.0-canary.59
< 15.6.0-canary.60
15.6.0-canary.60

References

Frequently Asked Questions

What is GHSA-5j59-xgg2-r9c4?
GHSA-5j59-xgg2-r9c4 is a security vulnerability in Next involving Next has a Denial of Service with Server Components - Incomplete Fix Follow-Up under CWE-502: Deserialization of Untrusted Data.
Which Next versions are affected?
Affected versions include releases prior to 16.0.10, 16.1.0-canary.19, 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60 across affected packages: next.
What version fixes GHSA-5j59-xgg2-r9c4?
Upgrading to 16.0.10, 16.1.0-canary.19, 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60 (or the latest patched release for your respective branch) resolves the vulnerability.
Is next affected?
Yes, next is affected in releases prior to 16.0.10, 16.1.0-canary.19, 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60. Upgrade your dependency to 16.0.10, 16.1.0-canary.19, 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60 or later.
What is the CVSS score of GHSA-5j59-xgg2-r9c4?
GHSA-5j59-xgg2-r9c4 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-5j59-xgg2-r9c4?
GHSA-5j59-xgg2-r9c4 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check npm dependencies for GHSA-5j59-xgg2-r9c4?
Run the dependency tree command: 'npm ls next'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5j59-xgg2-r9c4",
  "modified" : "2026-01-15T21:55:04Z",
  "published" : "2025-12-12T17:21:57Z",
  "aliases" : [ ],
  "summary" : "Next has a Denial of Service with Server Components - Incomplete Fix Follow-Up",
  "details" : "It was discovered that the fix for [CVE-2025-55184](https://github.com/advisories/GHSA-2m3v-v2m8-q956) in React Server Components was incomplete and did not fully mitigate denial-of-service conditions across all payload types.  As a result, certain crafted inputs could still trigger excessive resource consumption. \n\nThis vulnerability affects React versions 19.0.2, 19.1.3, and 19.2.2, as well as frameworks that bundle or depend on these versions, including Next.js 13.x, 14.x, 15.x, and 16.x when using the App Router. The issue is tracked upstream as [CVE-2025-67779](https://www.cve.org/CVERecord?id=CVE-2025-67779).\n\nA malicious actor can send a specially crafted HTTP request to a Server Function endpoint that, when deserialized, causes the React Server Components runtime to enter an infinite loop. This can lead to sustained CPU consumption and cause the affected server process to become unresponsive, resulting in a denial-of-service condition in unpatched environments.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.3.1-canary.0"
      }, {
        "fixed" : "14.2.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0.6"
      }, {
        "fixed" : "15.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.1.10"
      }, {
        "fixed" : "15.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.2.7"
      }, {
        "fixed" : "15.2.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.3.7"
      }, {
        "fixed" : "15.3.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.4.9"
      }, {
        "fixed" : "15.4.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.5.8"
      }, {
        "fixed" : "15.5.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.6.0-canary.59"
      }, {
        "fixed" : "15.6.0-canary.60"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.9"
      }, {
        "fixed" : "16.0.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.1.0-canary.17"
      }, {
        "fixed" : "16.1.0-canary.19"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/security/advisories/GHSA-5j59-xgg2-r9c4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67779"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/next.js"
  }, {
    "type" : "WEB",
    "url" : "https://nextjs.org/blog/security-update-2025-12-11"
  }, {
    "type" : "WEB",
    "url" : "https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2025-55184"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2025-67779"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395", "CWE-400", "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-12T17:21:57Z",
    "nvd_published_at" : "2025-12-12T00:15:46Z"
  }
}