CVE-2026-39371: Rwsdk RedwoodSDK Has A CSRF Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-x8rx-789c-2pxq
CVSS 8.1
CWE-352
Published
Advisory Summary

CVE-2026-39371 is a HIGH (CVSS 8.1) redwoodsdk has a csrf vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Rwsdk libraries in the npm ecosystem. The issue involves redwoodsdk has a csrf vulnerability in server function dispatch via get requests. Remediation is available by upgrading affected packages to version 1.0.6.

CVE-2026-39371 at a Glance

CVE Identifier CVE-2026-39371
GHSA Identifier GHSA-x8rx-789c-2pxq
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Rwsdk
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-39371

To remediate this vulnerability, upgrade all affected Rwsdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rwsdk fixed: 1.0.6
npm install rwsdk@1.0.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls rwsdk

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-39371, inspect your project dependencies using npm:

npm ls rwsdk

Analyze the terminal output to locate any version of Rwsdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.6), your application is affected.

Note: The npm ls rwsdk command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where 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. In Rwsdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Summary** Server 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. **Impact** An 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. **Remediation** Update to rwsdk `1.0.6`. No application code changes are required. The fix enforces the declared HTTP method at dispatch time. GET requests to server functions that require POST now return `405 Method Not Allowed`.

CVE-2026-39371 Affected Rwsdk Versions

1 component(s)
Fixed Versions:
1.0.6
Product / Package Ecosystem Affected Versions Fixed Version
rwsdk
npm
≥ 1.0.0-beta.50
< 1.0.6
1.0.6

References

Frequently Asked Questions

What is CVE-2026-39371?
CVE-2026-39371 is a security vulnerability in Rwsdk involving RedwoodSDK has a CSRF vulnerability in server function dispatch via GET requests under CWE-352: Cross-Site Request Forgery (CSRF).
Which Rwsdk versions are affected?
Affected versions include releases prior to 1.0.6 across affected packages: rwsdk.
What version fixes CVE-2026-39371?
Upgrading to 1.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rwsdk affected?
Yes, rwsdk is affected in releases prior to 1.0.6. Upgrade your dependency to 1.0.6 or later.
What is the CVSS score of CVE-2026-39371?
CVE-2026-39371 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2026-39371?
CVE-2026-39371 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check npm dependencies for CVE-2026-39371?
Run the dependency tree command: 'npm ls rwsdk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x8rx-789c-2pxq",
  "modified" : "2026-04-08T00:12:06Z",
  "published" : "2026-04-08T00:12:06Z",
  "aliases" : [ "CVE-2026-39371" ],
  "summary" : "RedwoodSDK has a CSRF vulnerability in server function dispatch via GET requests",
  "details" : "**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`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rwsdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-beta.50"
      }, {
        "fixed" : "1.0.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/redwoodjs/sdk/security/advisories/GHSA-x8rx-789c-2pxq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-39371"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/redwoodjs/sdk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-08T00:12:06Z",
    "nvd_published_at" : "2026-04-07T20:16:31Z"
  }
}