Lookup for vulnerable packages by Package URL.

Purlpkg:npm/rwsdk@1.0.0-beta.56
Typenpm
Namespace
Namerwsdk
Version1.0.0-beta.56
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version1.2.3
Latest_non_vulnerable_version1.2.3
Affected_by_vulnerabilities
0
url VCID-qur9-7tw8-p7a8
vulnerability_id VCID-qur9-7tw8-p7a8
summary
RedwoodSDK has Same-site CSRF through lack of origin validation in its server actions
### 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, `localhost` on 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`.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-42190
reference_id
reference_type
scores
0
value 0.00017
scoring_system epss
scoring_elements 0.04143
published_at 2026-06-06T12:55:00Z
1
value 0.00017
scoring_system epss
scoring_elements 0.04106
published_at 2026-06-08T12:55:00Z
2
value 0.00017
scoring_system epss
scoring_elements 0.04134
published_at 2026-06-07T12:55:00Z
3
value 0.00017
scoring_system epss
scoring_elements 0.04142
published_at 2026-06-05T12:55:00Z
4
value 0.00018
scoring_system epss
scoring_elements 0.04876
published_at 2026-06-09T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-42190
1
reference_url https://github.com/redwoodjs/sdk
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/redwoodjs/sdk
2
reference_url https://github.com/redwoodjs/sdk/releases/tag/v1.2.3
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-05-12T12:47:18Z/
url https://github.com/redwoodjs/sdk/releases/tag/v1.2.3
3
reference_url https://github.com/redwoodjs/sdk/security/advisories/GHSA-m2m6-cff5-3w7c
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-05-12T12:47:18Z/
url https://github.com/redwoodjs/sdk/security/advisories/GHSA-m2m6-cff5-3w7c
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-42190
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-42190
5
reference_url https://github.com/advisories/GHSA-m2m6-cff5-3w7c
reference_id GHSA-m2m6-cff5-3w7c
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-m2m6-cff5-3w7c
fixed_packages
0
url pkg:npm/rwsdk@1.2.3
purl pkg:npm/rwsdk@1.2.3
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/rwsdk@1.2.3
aliases CVE-2026-42190, GHSA-m2m6-cff5-3w7c
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-qur9-7tw8-p7a8
1
url VCID-tub3-akej-vqd8
vulnerability_id VCID-tub3-akej-vqd8
summary
RedwoodSDK has a CSRF vulnerability in server function dispatch via GET requests
**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`.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-39371
reference_id
reference_type
scores
0
value 6e-05
scoring_system epss
scoring_elements 0.00467
published_at 2026-06-06T12:55:00Z
1
value 6e-05
scoring_system epss
scoring_elements 0.00459
published_at 2026-06-08T12:55:00Z
2
value 6e-05
scoring_system epss
scoring_elements 0.00463
published_at 2026-06-09T12:55:00Z
3
value 6e-05
scoring_system epss
scoring_elements 0.00465
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-39371
1
reference_url https://github.com/redwoodjs/sdk
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/redwoodjs/sdk
2
reference_url https://github.com/redwoodjs/sdk/security/advisories/GHSA-x8rx-789c-2pxq
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-04-08T17:46:46Z/
url https://github.com/redwoodjs/sdk/security/advisories/GHSA-x8rx-789c-2pxq
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-39371
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-39371
4
reference_url https://github.com/advisories/GHSA-x8rx-789c-2pxq
reference_id GHSA-x8rx-789c-2pxq
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-x8rx-789c-2pxq
fixed_packages
0
url pkg:npm/rwsdk@1.0.6
purl pkg:npm/rwsdk@1.0.6
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-qur9-7tw8-p7a8
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/rwsdk@1.0.6
aliases CVE-2026-39371, GHSA-x8rx-789c-2pxq
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-tub3-akej-vqd8
Fixing_vulnerabilities
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/rwsdk@1.0.0-beta.56