{"schemaVersion":3,"id":"CVE-2026-27978","aliases":["GHSA-mq59-m269-xvcx"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-03-17T23:59:22.600Z","modified":"2026-03-18T19:48:04.820Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00235,"percentile":0.13651,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.035,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.002},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00235,"percentile":0.13651}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00235,"percentile":0.13651}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-352","name":"Cross-Site Request Forgery (CSRF)","description":"The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.","type":"weakness","status":"Stable","abstraction":"Compound","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/352.html"}],"affected":[{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 16.0.1, < 16.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 16.0.1, < 16.1.7","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null},{"vendor":"vercel","product":"next.js","name":"next.js","label":"next.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 16.0.1, < 16.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 16.0.1, < 16.1.7","eol":null,"hubHref":"/vendor/vercel/nextjs"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx","label":"github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://github.com/vercel/next.js/commit/a27a11d78e748a8c7ccfd14b7759ad2b9bf097d8","label":"github.com/vercel/next.js/commit/a27a11d78e748a8c7ccfd14b7759ad2b9bf097d8","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.1.7","label":"github.com/vercel/next.js/releases/tag/v16.1.7","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27978","label":"nvd.nist.gov/vuln/detail/CVE-2026-27978","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-03-17T23:59:22.600Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-03-18T19:48:04.820Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:51:48.241Z","stale":false,"partial":false}}