Next.js Server Actions Source Code Exposure Vulnerability in Next Package

next Updated 12 Dec 2025

Summary

11/12/2025
MODERATE
Yes i
Moderate
5.3

GHSA-w37m-7fhw-fmv9: Next Server Actions Source Code Exposure. Affects next across 9 version ranges.

>= 15.0.0-canary.0, < 15.0.6 >= 15.1.1-canary.0, < 15.1.10 >= 15.2.0-canary.0, < 15.2.7 >= 15.3.0-canary.0, < 15.3.7 >= 15.4.0-canary.0, < 15.4.9 >= 15.5.1-canary.0, < 15.5.8 >= 15.6.0-canary.0, < 15.6.0-canary.59 >= 16.0.0-beta.0, < 16.0.9 >= 16.1.0-canary.0, < 16.1.0-canary.17

Fixed in 9 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Next.js is a popular React framework that enables developers to build server-rendered applications with ease. It provides features like automatic code splitting, server-side rendering, and static site generation. However, certain versions of the Next package are vulnerable to a security issue that can expose sensitive server-side logic through crafted HTTP requests.

Vulnerability Detail

A vulnerability exists in specific versions of the Next package (19.0.0 to 19.2.1) and frameworks using these packages, including Next.js 15.x and 16.x with the App Router. This issue allows attackers to send malicious HTTP requests to App Router endpoints, potentially revealing compiled source code of Server Functions. While this could expose business logic, it does not directly reveal secrets unless hardcoded within the Server Function code. The vulnerability is tracked as CVE-2025-55183.

How To Fix

Latest published version: 16.4.2 as of 22 Oct 2026

npm install next@16.4.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 15.0.0-canary.0, < 15.0.6 15.0.6
    npm install next@15.0.6
  • >= 15.1.1-canary.0, < 15.1.10 15.1.10
    npm install next@15.1.10
  • >= 15.2.0-canary.0, < 15.2.7 15.2.7
    npm install next@15.2.7
  • >= 15.3.0-canary.0, < 15.3.7 15.3.7
    npm install next@15.3.7
  • >= 15.4.0-canary.0, < 15.4.9 15.4.9
    npm install next@15.4.9
  • >= 15.5.1-canary.0, < 15.5.8 15.5.8
    npm install next@15.5.8
Show all 9 release lines
  • >= 15.6.0-canary.0, < 15.6.0-canary.59 15.6.0-canary.59
    npm install next@15.6.0-canary.59
  • >= 16.0.0-beta.0, < 16.0.9 16.0.9
    npm install next@16.0.9
  • >= 16.1.0-canary.0, < 16.1.0-canary.17 16.1.0-canary.17
    npm install next@16.1.0-canary.17

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, ensure that sensitive business logic is not hardcoded in Server Functions and consider implementing additional access controls to restrict unauthorized access to App Router endpoints.

Conclusion

The Next.js Server Actions Source Code Exposure vulnerability poses a risk to applications using affected versions of the Next package. It is crucial to update to the patched versions to mitigate this risk and protect sensitive business logic from exposure.

See every vulnerability recorded for next →

Share this vulnerability

FAQ

Versions 19.0.0 to 19.2.1 of the Next package and Next.js 15.x and 16.x using the App Router are affected.

The CVSS score of this vulnerability is 5.3, indicating a moderate level of risk.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If immediate updates are not possible, implement access controls to limit exposure and avoid hardcoding sensitive logic in Server Functions.

Related vulnerabilities

Recent vulnerabilities recorded for next.

How To Fix

Latest published version: 16.4.2 as of 22 Oct 2026

npm install next@16.4.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 15.0.0-canary.0, < 15.0.6 15.0.6
    npm install next@15.0.6
  • >= 15.1.1-canary.0, < 15.1.10 15.1.10
    npm install next@15.1.10
  • >= 15.2.0-canary.0, < 15.2.7 15.2.7
    npm install next@15.2.7
  • >= 15.3.0-canary.0, < 15.3.7 15.3.7
    npm install next@15.3.7
  • >= 15.4.0-canary.0, < 15.4.9 15.4.9
    npm install next@15.4.9
  • >= 15.5.1-canary.0, < 15.5.8 15.5.8
    npm install next@15.5.8
Show all 9 release lines
  • >= 15.6.0-canary.0, < 15.6.0-canary.59 15.6.0-canary.59
    npm install next@15.6.0-canary.59
  • >= 16.0.0-beta.0, < 16.0.9 16.0.9
    npm install next@16.0.9
  • >= 16.1.0-canary.0, < 16.1.0-canary.17 16.1.0-canary.17
    npm install next@16.1.0-canary.17

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback