CVE-2026-27978
Next.js: null origin can bypass Server Actions CSRF checks
Next.js is a React framework for building full-stack web applications. Starting in version 16.0.1 and prior to version 16.1.7, `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). This is fixed in version 16.1.7 by treating `'null'` as an explicit origin value and enforcing host/origin checks unless `'null'` is explicitly allowlisted in `experimental.serverActions.allowedOrigins`. If upgrading is not immediately possible, add CSRF tokens for sensitive Server Actions, prefer `SameSite=Strict` on sensitive auth cookies, and/or do not allow `'null'` in `serverActions.allowedOrigins` unless intentionally required and additionally protected.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.233% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.3 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:01:48.658Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:01:48.658Z | CVE Program |
| epss | verified | 2026-11-19T16:04:48.211Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:57.337Z | OSV |
| affected | verified | 2026-11-19T12:01:48.658Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:48.658Z | CVE Program |
Affected versions and configuration
vercel next.js; default status: unknown: >= 16.0.1, < 16.1.7 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
OSV · osv · full conditions
{
"id": "GHSA-mq59-m269-xvcx",
"aliases": [
"CVE-2026-27978"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "16.0.1"
},
{
"fixed": "16.1.7"
}
]
}
],
"package": {
"name": "next",
"purl": "pkg:npm/next",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-mq59-m269-xvcx/GHSA-mq59-m269-xvcx.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27978",
"type": "ADVISORY"
},
{
"url": "https://github.com/vercel/next.js/commit/a27a11d78e748a8c7ccfd14b7759ad2b9bf097d8",
"type": "WEB"
},
{
"url": "https://github.com/vercel/next.js",
"type": "PACKAGE"
},
{
"url": "https://github.com/vercel/next.js/releases/tag/v16.1.7",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-03-18T00:16:20Z",
"github_reviewed_at": "2026-03-17T15:30:14Z"
}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "vercel",
"product": "next.js",
"versions": [
{
"status": "affected",
"version": ">= 16.0.1, < 16.1.7"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-27978",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-03-18T19:47:56.377866Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-03-18T19:48:04.820Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | next | Not a distribution channel | 16.1.7 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:48.658ZArchived source JSON
Source publication: 2026-03-17T23:59:22.600Z
Source modification: 2026-03-18T19:48:04.820ZDocument fingerprint
775810a5b4509cedf716004e80026514921c1c7efadd7f354a2f620849efd68c - OSVConsulted: 2026-11-19T12:51:57.337ZArchived source JSON
Source publication: 2026-03-17T15:30:14.000Z
Source modification: 2026-03-19T18:31:23.523ZDocument fingerprint
7d4eb95abe8a9661807a717b59c5cebbe020ba401a580c1ab04c7b391af1539c - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:48.211ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
2438b0af5d307bc4622b5c1b0dc3ffbe873c9bb6ab482509038cc59a4fc63d32
Official status history
- UNKNOWN → PUBLISHED · · evidence