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

CVE-2026-27978: Next.js: null origin can bypass Server Actions CSRF checks

March 17, 2026 (updated March 19, 2026)

origin: null was treated as a “missing” origin during Server Action CSRF validation. As a result, requests from opaque contexts (such as sandboxed iframes) could bypass origin verification instead of being validated as cross-origin requests.

References

  • github.com/advisories/GHSA-mq59-m269-xvcx
  • github.com/vercel/next.js
  • github.com/vercel/next.js/commit/a27a11d78e748a8c7ccfd14b7759ad2b9bf097d8
  • github.com/vercel/next.js/releases/tag/v16.1.7
  • github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx
  • nvd.nist.gov/vuln/detail/CVE-2026-27978

Code Behaviors & Features

Detect and mitigate CVE-2026-27978 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 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

npm/next/CVE-2026-27978.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:34 +0000.