Missing Origin Validation in WebSockets Affecting next package, versions >=16.0.1 <16.1.7>=16.2.0-canary.0 <16.2.0-canary.102


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th 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-15674560
  • published17 Mar 2026
  • disclosed17 Mar 2026
  • creditDavid Schütz, Radu Nesiu

Introduced: 17 Mar 2026

NewCVE-2026-27977  (opens in a new tab)
CWE-1385  (opens in a new tab)

How to fix?

Upgrade next to version 16.1.7, 16.2.0-canary.102 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Missing Origin Validation in WebSockets in the internal dev endpoint when the Origin header is set to null. An attacker can interact with internal development websocket traffic by connecting from privacy-sensitive or opaque contexts, such as sandboxed documents, if the development server is accessible from attacker-controlled content.

CVSS Base Scores

version 4.0
version 3.1