GHSA-w37m-7fhw-fmv9: Next Remote Code Execution Vulnerability

MODERATE
CVSS 5.3
CWE-502 CWE-1395 CWE-497
Published
Advisory Summary

GHSA-w37m-7fhw-fmv9 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Next libraries in the npm ecosystem. The issue involves next server actions source code exposure. Remediation is available by upgrading affected packages to version 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17.

GHSA-w37m-7fhw-fmv9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-w37m-7fhw-fmv9
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L/I:N/A:N).

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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-w37m-7fhw-fmv9

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: 15.0.6
npm install next@15.0.6
next fixed: 15.1.10
npm install next@15.1.10
next fixed: 15.2.7
npm install next@15.2.7
next fixed: 15.3.7
npm install next@15.3.7
next fixed: 15.4.9
npm install next@15.4.9
next fixed: 15.5.8
npm install next@15.5.8
next fixed: 15.6.0-canary.59
npm install next@15.6.0-canary.59
next fixed: 16.0.9
npm install next@16.0.9
next fixed: 16.1.0-canary.17
npm install next@16.1.0-canary.17
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-w37m-7fhw-fmv9, 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 15.0.6), 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

A vulnerability affects certain React packages for versions 19.0.0, 19.0.1, 19.1.0, 19.1.1, 19.1.2, 19.2.0, and 19.2.1 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183). A malicious HTTP request can be crafted and sent to any App Router endpoint that can return the compiled source code of [Server Functions](https://react.dev/reference/rsc/server-functions). This could reveal business logic, but would not expose secrets unless they were hardcoded directly into [Server Function](https://react.dev/reference/rsc/server-functions) code.

GHSA-w37m-7fhw-fmv9 Affected Next Versions

9 component(s)
Fixed Versions:
15.0.615.1.1015.2.715.3.715.4.915.5.815.6.0-canary.5916.0.916.1.0-canary.17
Product / Package Ecosystem Affected Versions Fixed Version
next
npm
≥ 15.0.0-canary.0
< 15.0.6
15.0.6
next
npm
≥ 15.1.1-canary.0
< 15.1.10
15.1.10
next
npm
≥ 15.2.0-canary.0
< 15.2.7
15.2.7
next
npm
≥ 15.3.0-canary.0
< 15.3.7
15.3.7
next
npm
≥ 15.4.0-canary.0
< 15.4.9
15.4.9
next
npm
≥ 15.5.1-canary.0
< 15.5.8
15.5.8
next
npm
≥ 15.6.0-canary.0
< 15.6.0-canary.59
15.6.0-canary.59
next
npm
≥ 16.0.0-beta.0
< 16.0.9
16.0.9
next
npm
≥ 16.1.0-canary.0
< 16.1.0-canary.17
16.1.0-canary.17

References

Frequently Asked Questions

What is GHSA-w37m-7fhw-fmv9?
GHSA-w37m-7fhw-fmv9 is a security vulnerability in Next involving Next Server Actions Source Code Exposure under CWE-502: Deserialization of Untrusted Data.
Which Next versions are affected?
Affected versions include releases prior to 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17 across affected packages: next.
What version fixes GHSA-w37m-7fhw-fmv9?
Upgrading to 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is next affected?
Yes, next is affected in releases prior to 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17. Upgrade your dependency to 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17 or later.
What is the CVSS score of GHSA-w37m-7fhw-fmv9?
GHSA-w37m-7fhw-fmv9 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-w37m-7fhw-fmv9?
GHSA-w37m-7fhw-fmv9 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-w37m-7fhw-fmv9?
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-w37m-7fhw-fmv9",
  "modified" : "2025-12-11T22:49:56Z",
  "published" : "2025-12-11T22:49:56Z",
  "aliases" : [ ],
  "summary" : "Next Server Actions Source Code Exposure ",
  "details" : "A vulnerability affects certain React packages for versions 19.0.0, 19.0.1, 19.1.0, 19.1.1, 19.1.2, 19.2.0, and 19.2.1 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183).\n\nA malicious HTTP request can be crafted and sent to any App Router endpoint that can return the compiled source code of [Server Functions](https://react.dev/reference/rsc/server-functions). This could reveal business logic, but would not expose secrets unless they were hardcoded directly into [Server Function](https://react.dev/reference/rsc/server-functions) code.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0.0-canary.0"
      }, {
        "fixed" : "15.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.1.1-canary.0"
      }, {
        "fixed" : "15.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.2.0-canary.0"
      }, {
        "fixed" : "15.2.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.3.0-canary.0"
      }, {
        "fixed" : "15.3.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.4.0-canary.0"
      }, {
        "fixed" : "15.4.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.5.1-canary.0"
      }, {
        "fixed" : "15.5.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.6.0-canary.0"
      }, {
        "fixed" : "15.6.0-canary.59"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0-beta.0"
      }, {
        "fixed" : "16.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.1.0-canary.0"
      }, {
        "fixed" : "16.1.0-canary.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/security/advisories/GHSA-w37m-7fhw-fmv9"
  }, {
    "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://www.cve.org/CVERecord?id=CVE-2025-55183"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395", "CWE-497", "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-11T22:49:56Z",
    "nvd_published_at" : null
  }
}