5.3

CVE-2026-27978: vercel next.js Cross-Site Request Forgery (CSRF)

CVSS: 5.3v4.0MediumAnalyzed
AliasesGHSA-mq59-m269-xvcx
Published 17-03-2026Last modified 18-03-2026

Vulnerability summary

CVE-2026-27978 is a medium (CVSS 5.3) Cross-Site Request Forgery (CSRF) vulnerability in vercel next.js. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 13.6% of scored vulnerabilities.

Overall risk
21/100
0100
Low · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.24%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 17-03-2026
    PublishedVulnerability first disclosed.
  2. 18-03-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

+0.04 pp

From 0.20% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.24%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Npm1 product
  • next≥ 16.0.1, < 16.1.7
Vercel1 product

2 vendors · 2 products

References

5 links