Feed
4.3MEDIUM

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

A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.3% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.3%
percentile 12%
Priority
17/100 low
how it is computed
Fix
Named by a source
CVE published 18 Mar 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.3% (+0) · Network attack vector (+10) · No privileges required (+5)

Immediate actions

Who should check

  • next (npm) pkg:npm/next

    • Affected>= 16.0.1, < 16.1.7Fixed in16.1.7OSV (GHSA-mq59-m269-xvcx)
  • vercel next.js product:vercel/nextjs

    • Affected>= 16.0.1, < 16.1.7Affected range ends before16.1.7as published by CNA (CVE List)
    • Affected>= 16.0.1, < 16.1.7Affected range ends before16.1.7as published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
4.3 MEDIUM (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-352
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

  • 18 Mar 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 8 min ago · osv 8 min ago · nvd 69 min ago · epss 8 min ago · JSON · ask via MCP: explain_vulnerability

Also known as GHSA-mq59-m269-xvcx