{"id":"CVE-2026-27978","published":"2026-03-17T23:59:22Z","modified":"2026-03-18T19:48:04Z","title":"Next.js: null origin can bypass Server Actions CSRF checks","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00272,"percentile":0.12385,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vercel/next.js/commit/a27a11d78e748a8c7ccfd14b7759ad2b9bf097d8","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.1.7","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":2.48},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-25","earliestUrl":"https://github.com/Nayekah/Next.js-Proof-of-Concept","repos":[{"name":"Nayekah/Next.js-Proof-of-Concept","url":"https://github.com/Nayekah/Next.js-Proof-of-Concept","stars":0,"created":"2026-04-25"}]},"first":{"date":"2026-04-25","source":"PoC-in-GitHub","url":"https://github.com/Nayekah/Next.js-Proof-of-Concept"},"provenance":"source"},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 16.0.1, < 16.1.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-18T19:47:56.377866Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=16.0.1, <16.1.7"],"patched":["16.1.7"],"from":["GHSA-mq59-m269-xvcx"],"provenance":"source"}],"summary":{"text":"The Next.js framework (vercel/next.js) has a flaw in its Server Actions CSRF validation, where a null origin in versions from 16.0.1 up to but not including 16.1.7 was treated as a missing origin and so skipped origin verification. An attacker can exploit this over the network without authentication by inducing a victim's browser to submit Server Actions from a sandboxed context such as a sandboxed iframe, which requires user interaction and can perform state-changing actions using the victim's credentials.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:31Z"},"euvd":{"id":"EUVD-2026-12684","exploited":false,"provenance":"source"}}