All vulnerabilities

Servers and applications

CVE-2026-27978

null origin can bypass Server Actions CSRF checks

Severity
Medium 5.3
Published
16 Mar 2026
Last changed
16 Mar 2026
Added to UpHeron
3 Nov 2026
Fixed in
16.1.7
Exploit chance
0.2% in the next 30 daysHigher than 14% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site request forgery (CWE-352)
Attack
Over the network · No login needed · Needs someone to view a page or file
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Also known as
GHSA-mq59-m269-xvcx
Sources
Project advisories (GitHub)

Description

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.

An attacker could induce a victim browser to submit Server Actions from a sandboxed context, potentially executing state-changing actions with victim credentials (CSRF).

From vercel/next.js's security advisory.

Workarounds

If upgrade is not immediately possible:

  • Add CSRF tokens for sensitive Server Actions.
  • Prefer SameSite=Strict on sensitive auth cookies.
  • Do not allow 'null' in serverActions.allowedOrigins unless intentionally required and additionally protected.
Workarounds as given by vercel/next.js's security advisory.

Affected software

SoftwareAffected versions
Next.jsServers and applications · github:vercel/next.js
  • From 16.0.1 before 16.1.7

About Next.js

JavaScript framework to create web applications

From Wikidata, CC0 1.0.
Share of all websites
4.0%W3Techs, Nov 2026
Developers who used it in the past year
20.8%Stack Overflow Developer Survey 2025, 2025
Weekly downloads (npm)
93,677,602npm, 15 Nov 2026
GitHub stars
143,526GitHub, 15 Nov 2026
Forks
32,804GitHub, 15 Nov 2026
Latest release
v16.4.6GitHub, 15 Nov 2026
Released
9 Nov 2026GitHub
Developer
Vercel Inc.Wikidata
License
MIT LicenseWikidata
Written in
JavaScriptWikidata
First released
25 Oct 2016Wikidata
First published on GitHub
5 Oct 2016GitHub

Release lines

ReleaseLatestSecurity fixes
16 (LTS)LTS16.4.6Yes
15 (LTS)LTS15.5.29Until 31 Jan 2027
14 (LTS)LTS14.2.35Ended 26 Oct 2025
1313.5.11Ended 21 Dec 2024
1212.3.7Ended 21 Nov 2022
1111.1.4Ended 27 Jan 2022

From endoflife.date.

References