5.3medium
RedwoodSDK: Same-site CSRF in in server actions
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m2m6-cff5-3w7c
Description
RedwoodSDK is a server-first React framework. From version 1.0.0-beta.50 to before version 1.2.3, server actions in rwsdk apply HTTP method enforcement but no origin validation. A request originating from a different origin that the browser treats as same-site can invoke a server action with the victim's session cookie attached. This issue has been patched in version 1.2.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| redwoodjs sdk | >= 1.0.0-beta.50, < 1.2.3 | CVE List |
| rwsdk (npm) | from 1.0.0-beta.50 before 1.2.3 | GitHub Advisory Database |
| redwoodjs redwoodsdk | from 1.0.1 before 1.2.3, 1.0.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
RedwoodSDK is a server-first React framework. From version 1.0.0-beta.50 to before version 1.2.3, server actions in rwsdk apply HTTP method enforcement but no origin validation. A request originating from a different origin that the browser treats as same-site can invoke a server action with the victim's session cookie attached. This issue has been patched in version 1.2.3.
GitHub Advisory Database
Summary
Server actions in rwsdk apply HTTP method enforcement but no origin validation. A request originating from a different origin that the browser treats as same-site can invoke a server action with the victim's session cookie attached.
Impact
An attacker who controls any origin the browser considers same-site with the deployed app can induce an authenticated victim's browser to invoke arbitrary server actions. The exposure depends on deployment shape:
- Apps deployed on custom domains (for example
app.example.com) are exposed whenever the attacker controls any sibling subdomain under the same registrable domain. Plausible vectors include subdomain takeover of stale DNS records pointing at third-party services, cross-site scripting on a sibling application, or content served from a user-content subdomain. - Apps deployed on platform-suffix domains on the Public Suffix List (
*.workers.dev,*.pages.dev) are not exposed to the sibling-subdomain vector, because sibling subdomains under those suffixes are treated as cross-site. - In local development,
localhoston any other port is treated as same-site with the app's dev server. A separate process running on the developer's machine can invoke server actions against the dev server.
The attacker cannot read action responses (mode: "no-cors" yields opaque responses). Impact is therefore limited to side effects of action invocation: writes, state changes, and any externally observable action the application performs in response.
Cross-site requests from unrelated origins (evil.com targeting app.com) are not affected because SameSite=Lax session cookies are not attached by default in that scenario.
Affected Configurations
Applications using rwsdk server actions (serverAction() or functions invoked via the RSC action protocol) in combination with cookie-based authentication. serverQuery() is not affected because it is designed to be idempotent and is invoked via GET.
Patch
The patched release enforces an Origin/Host match for non-GET action requests. Requests whose Origin header does not match the request's own origin are rejected with HTTP 403 unless the origin is listed in a new allowedOrigins configuration option.
No application code changes are required for apps that invoke server actions from their own origin. Apps that legitimately invoke server actions from another origin must add those origins to the allowedOrigins option on defineApp.
Credits
Reported by @mthx.
NVD (es)
RedwoodSDK es un framework React con prioridad en el servidor. Desde la versión 1.0.0-beta.50 hasta antes de la versión 1.2.3, las acciones del servidor en rwsdk aplican la aplicación forzosa del método HTTP pero no la validación de origen. Una solicitud originada desde un origen diferente que el navegador trata como del mismo sitio puede invocar una acción del servidor con la cookie de sesión de la víctima adjunta. Este problema ha sido parcheado en la versión 1.2.3.
References
| https://github.com/redwoodjs/sdk/security/advisories/GHSA-m2m6-cff5-3w7c | vendor-advisory, web | |
| https://github.com/redwoodjs/sdk/releases/tag/v1.2.3 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42190 | advisory | |
| https://github.com/redwoodjs/sdk | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42190 changed 2026-05-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m2m6-cff5-3w7c changed 2026-05-13 | CC-BY-4.0 |
| NVD | CVE-2026-42190 changed 2026-10-26 | Public domain |