{"id":"CVE-2026-39371","aliases":["CVE-2026-39371","GHSA-x8rx-789c-2pxq"],"related":[],"kind":"vulnerability","state":"published","title":"RedwoodSDK has a CSRF vulnerability in server function dispatch via GET requests","summary":"RedwoodSDK is a server-first React framework. From 1.0.0-beta.50 to 1.0.5, erver functions exported from \"use server\" files could be invoked via GET requests, bypassing their intended HTTP method. In cookie-authenticated applications, this allowed cross-site GET navigations to trigger state-changing functions, because browsers send SameSite=Lax cookies on top-level GET requests. This affected all server functions -- both serverAction() handlers and bare exported functions in \"use server\" files. This vulnerability is fixed in 1.0.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RedwoodSDK is a server-first React framework. From 1.0.0-beta.50 to 1.0.5, erver functions exported from \"use server\" files could be invoked via GET requests, bypassing their intended HTTP method. In cookie-authenticated applications, this allowed cross-site GET navigations to trigger state-changing functions, because browsers send SameSite=Lax cookies on top-level GET requests. This affected all server functions -- both serverAction() handlers and bare exported functions in \"use server\" files. This vulnerability is fixed in 1.0.6.","source":"cvelist"},{"lang":"en","text":"**Summary**\n\nServer functions exported from `\"use server\"` files could be invoked via GET requests, bypassing their intended HTTP method. In cookie-authenticated applications, this allowed cross-site GET navigations to trigger state-changing functions, because browsers send `SameSite=Lax` cookies on top-level GET requests.\n\nThis affected all server functions -- both `serverAction()` handlers and bare exported functions in `\"use server\"` files.\n\n**Impact**\n\nAn attacker could construct a URL containing a known action ID and JSON-encoded arguments. When a victim with an active session visited or was redirected to this URL, the function executed with the victim's credentials. This affected any server function that performs state-changing operations (writes, deletes, mutations) in applications using cookie-based authentication.\n\n**Remediation**\n\nUpdate to rwsdk `1.0.6`. No application code changes are required.\n\nThe fix enforces the declared HTTP method at dispatch time. GET requests to server functions that require POST now return `405 Method Not Allowed`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"RedwoodSDK es un framework React con prioridad en el servidor. Desde la versión 1.0.0-beta.50 hasta la 1.0.5, las funciones del servidor exportadas desde archivos 'use server' podían ser invocadas mediante solicitudes GET, eludiendo su método HTTP previsto. En aplicaciones autenticadas con cookies, esto permitía que las navegaciones GET entre sitios activaran funciones que cambian el estado, porque los navegadores envían cookies SameSite=Lax en solicitudes GET de nivel superior. Esto afectó a todas las funciones del servidor -- tanto a los manejadores serverAction() como a las funciones exportadas directamente en archivos 'use server'. Esta vulnerabilidad está corregida en la versión 1.0.6.","source":"nvd"}],"published":"2026-04-07T19:28:30.941Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":">= 1.0.0-beta.50, < 1.0.6","status":"affected"}],"vendor":"redwoodjs","product":"sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0-beta.50","status":"affected","fixed":"1.0.6"}],"ecosystem":"npm","package":"rwsdk","purl":"pkg:npm/rwsdk","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.1","fixed":"1.0.6"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"}],"vendor":"redwoodjs","product":"redwoodsdk","cpe":"cpe:2.3:a:redwoodjs:redwoodsdk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/redwoodjs/sdk/security/advisories/GHSA-x8rx-789c-2pxq","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39371","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/redwoodjs/sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-08T17:46:46.520Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39371","url":"https://www.cve.org/CVERecord?id=CVE-2026-39371","licence":"CVE Terms of Use","modified":"2026-04-08T17:46:55.661Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x8rx-789c-2pxq","url":"https://github.com/advisories/GHSA-x8rx-789c-2pxq","licence":"CC-BY-4.0","modified":"2026-04-08T00:27:17.091Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39371","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39371","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:18.165Z","epss":{"score":0.00209,"percentile":0.11632,"date":"2026-12-01T12:00:22.000Z"}}