Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2026-27977

CVE-2026-27977: Next.js: null origin can bypass dev HMR websocket CSRF checks

March 17, 2026 (updated March 25, 2026)

In next dev, cross-site protections for internal development endpoints could treat Origin: null as a bypass case even when allowedDevOrigins is configured. This could allow privacy-sensitive or opaque browser contexts, such as sandboxed documents, to access privileged internal dev-server functionality unexpectedly.

References

  • github.com/advisories/GHSA-jcc7-9wpm-mj36
  • github.com/vercel/next.js
  • github.com/vercel/next.js/commit/862f9b9bb41d235e0d8cf44aa811e7fd118cee2a
  • github.com/vercel/next.js/releases/tag/v16.1.7
  • github.com/vercel/next.js/security/advisories/GHSA-jcc7-9wpm-mj36
  • nvd.nist.gov/vuln/detail/CVE-2026-27977

Code Behaviors & Features

Detect and mitigate CVE-2026-27977 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 16.0.1 before 16.1.7

Fixed versions

  • 16.1.7

Solution

Upgrade to version 16.1.7 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1385: Missing Origin Validation in WebSockets

Source file

npm/next/CVE-2026-27977.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:03 +0000.