Cross-site request forgery in Next.js - CVE-2026-27978

 

Cross-site request forgery in Next.js - CVE-2026-27978

Published: March 17, 2026


Vulnerability identifier: #VU124058
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-27978
CWE-ID: CWE-352
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: vercel
Affected software:
Next.js

Detailed vulnerability description

The vulnerability allows a remote attacker to perform cross-site request forgery attacks.

The vulnerability exists due to the "origin: null" is treated as a "missing" origin during Server Action CSRF validation. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website.


How to mitigate CVE-2026-27978

Install updates from vendor's website.

Sources