Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim loads attacker-controlled page
-
DeliveryAuto-submit cross-origin POST to /_rsc/<encoded-action-id> with Content-Type: text/plain
-
ExploitBrowser attaches victim session cookies (no preflight triggered)
-
ExecutionWaku dispatcher decodes action ID from URL
-
PersistloadServerAction invokes target 'use server' function with attacker args
-
ImpactState mutation executed under victim's identity
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim must be authenticated to a Waku application that exposes at least one 'use server' server action and must visit an attacker-controlled web page, or be subjected to an opaque-origin context (sandboxed iframe injected by a third-party script, file:// page, or browser extension) that can auto-issue a cross-origin POST. The attacker must know or enumerate the RSC endpoint path encoding for a target server action under the configured rscBase prefix. No special server configuration is required - the missing Origin guard is the default state of all waku deployments. The Content-Type must be a CORS-safelisted value (text/plain or multipart/form-data) to avoid browser preflight. Exploitation is limited by the requirement for victim interaction (UI:R) and the attacker's inability to read the RSC response due to the Same-Origin Policy (C:N). In waku dev mode only, Vite's server.allowedHosts provides a partial Host-header guard; this does not apply to production builds. |
| Impact | The CVSS 6.5 score with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N correctly captures the threat model: exploitation requires victim user interaction (UI:R - the victim must visit an attacker-controlled page), but imposes no authentication burden on the attacker and no configuration complexity (AC:L). The I:H rating is justified because any registered server action - including those performing account mutations, privilege escalation, payment initiation, or data deletion - is reachable without restriction. Confidentiality impact is correctly C:N because the Same-Origin Policy prevents the attacker from reading the RSC stream response. EPSS data was not included in the provided intelligence; probabilistic exploitation likelihood cannot be quantified from available signals. No CISA KEV listing is present, so confirmed active exploitation in the wild cannot be stated. However, the reporter confirmed a working proof-of-concept that was dynamically verified on 2026-05-17, and the attack technique (CORS-safelisted POST CSRF) is well-documented and low-skill. The additional attack surface via opaque-origin senders (Origin: null from sandboxed iframes, file:// navigation, and browser extensions) materially expands the realistic attacker population beyond standard CSRF scenarios. Real-world risk is bounded primarily by Waku's niche deployment footprint rather than by technical barriers to exploitation. |
| Exploit ScenarioDerived | An attacker hosts a web page containing a JavaScript fetch call or auto-submitting HTML form that POSTs to the target waku application's RSC endpoint (e.g., /_rsc/<encoded-action-id>) with Content-Type: text/plain or multipart/form-data. When an authenticated victim visits the attacker's page, the browser attaches the victim's session cookies without triggering a CORS preflight; the waku dispatcher decodes the action ID and invokes the targeted server action with attacker-supplied arguments, completing the state mutation (e.g., account modification, data deletion, or privilege change) as the victim. The reporter's proof-of-concept returned HTTP 200 with a valid RSC stream response, confirming full server action execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Cross-Site Request Forgery in Waku's RSC request dispatcher allows a remote attacker to invoke any state-mutating 'use server' server action with a victim's session cookies by exploiting the complete absence of Origin header validation in the core request handler at packages/waku/src/lib/utils/request.ts. Both the RSC path prefix branch (exploitable via Content-Type: text/plain, no preflight) and the progressive-enhancement HTML form branch (exploitable via multipart/form-data) are unguarded, with opaque-origin contexts such as sandboxed iframes and browser extension pages additionally exploitable via Origin: null. The reporter confirmed a working proof-of-concept against waku 1.0.0-beta.0 with dynamic verification on 2026-05-17; all HTTP adapters share the same vulnerable dispatcher and no patched version has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis. The suggested framework-level fix is to add Origin and Sec-Fetch-Site header validation in the RSC dispatch branch of getInput in packages/waku/src/lib/utils/request.ts, gated against the configured base URL host, with an opt-in allowedOrigins configuration option for legitimate cross-origin deployments. Until a patch is released, operators should deploy an Origin-validating reverse proxy or middleware in front of Waku that rejects POST requests to the configured rscBase prefix where the Origin header does not match the application's expected host, and explicitly rejects requests bearing Origin: null. Note that Vite's server.allowedHosts guard applies only to waku dev (rejecting unknown Host headers with HTTP 403) and does not protect production deployments running waku build && waku start - those deployments are fully exposed without an external mitigation layer. Monitor the GitHub Security Advisory at https://github.com/wakujs/waku/security/advisories/GHSA-75w3-gmqx-993q for an official patched release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Waku is a minimal React Server Components (RSC) framework that exposes 'use server' directives as callable server actions dispatched through a centralized handler in packages/waku/src/lib/utils/request.ts. The RSC path prefix branch decodes a function ID from the URL pathname, loads the corresponding action via loadServerAction, and invokes it with arguments decoded from the request body - performing no check on the Origin or Sec-Fetch-Site header before execution. The CORS Fetch specification designates text/plain and multipart/form-data as safelisted content types that do not trigger a browser preflight OPTIONS request, meaning a cross-origin page can cause an authenticated browser to POST to the RSC endpoint with session cookies attached and receive no browser-level block. This is CWE-352 (Cross-Site Request Forgery): the server omits verification that a state-mutating request originated from a trusted context. The affected package is identified by CPE pkg:npm/waku. All four production HTTP adapters (node.ts, cloudflare.ts, vercel.ts, edge.ts) chain through the same getInput dispatcher, meaning the flaw is not adapter-specific. A directly comparable precedent exists in Next.js GHSA-mq59-m269-xvcx, where an Origin: null bypass was patched in Next.js 16.1.7; Waku's exposure is broader because no Origin check exists at all rather than an incomplete one.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Network CSRF requiring victim page visit (UI:R); CORS-safelisted POST eliminates preflight complexity (AC:L); no attacker credentials needed (PR:N); SOP blocks response reads (C:N) but server action executes fully (I:H).
Primary rating from Vendor (https://github.com/wakujs/waku).
CVSS VectorVendor: https://github.com/wakujs/waku
DescriptionCVE.org
Summary
Waku's RSC request dispatcher invokes server actions without validating the request's Origin (or Sec-Fetch-Site) header. A cross-origin web attacker can therefore cause a victim browser to issue an authenticated POST to a registered server action endpoint using a CORS-safelisted content type (text/plain), which does not trigger a preflight. Any state-mutating server action that the application exposes via 'use server' can be invoked with the victim's cookies attached. A working proof-of-concept demonstrates the vulnerability against waku 1.0.0-beta.0 dev server: a cross-origin POST with Content-Type: text/plain invokes a registered 'use server' action and returns HTTP 200 with an RSC stream response. The same defect affects the progressive-enhancement (no-JavaScript) server action path: a cross-origin HTML form auto-submitting multipart/form-data reaches the dispatch through a second unguarded branch of the request handler, dynamically confirmed on 2026-05-17. Both branches were confirmed exploitable from opaque-origin contexts (sandboxed iframes, file:// navigation, browser extension pages), which send Origin: null - a value no Origin guard exists to reject. This is the same vulnerability class previously disclosed for Next.js Server Actions (GHSA-mq59-m269-xvcx); waku's implementation is broader in that no Origin check exists at all in the default request handler.
Root cause
In packages/waku/src/lib/utils/request.ts:
// line 29
if (pathname.startsWith(rscPathPrefix)) {
rscPath = decodeRscPath(pathname.slice(rscPathPrefix.length));
const actionId = decodeFuncId(rscPath);
if (actionId) {
const body = await getActionBody(req);
const args = await decodeReply(body, { temporaryReferences });
const action = await loadServerAction(actionId);
// ...action is invoked with attacker-supplied args
}
}The sibling else if (req.method === 'POST') branch (line 61) does enforce a method check, but only for non-RSC paths. The RSC dispatch branch has no equivalent guard. For comparison, frameworks in the same category (Next.js, Remix) compare the request's Origin header against the configured host before invoking a server action.
Trigger (one-line summary)
A cross-origin POST with Content-Type: text/plain to /<rscBase>/<encoded-action-path> reaches loadServerAction and invokes a registered 'use server' action with the victim's browser-attached cookies.
Affected entry surfaces
- All HTTP adapters exposed by waku (
packages/waku/src/adapters/node.ts,cloudflare.ts,vercel.ts,edge.ts) - each chains through the samerequest.ts:getInputdispatcher. - Any server action declared with
'use server'and reachable from the Vite module graph (i.e., normal application code).
Suggested fix outline
Add an Origin (and ideally Sec-Fetch-Site) validation step in the RSC dispatch branch of getInput, gated against the configured base URL host, with an opt-in allowedOrigins configuration option for legitimate cross-origin scenarios. Exact patch sketches will be provided in the follow-up comment.
Disclosure
| Field | Value |
|---|---|
| Reporter | j0hndo (dohyun4466@gmail.com) |
| Discovery date | 2026-05-15 |
| Embargo | 90 days from acknowledgement (operator open to extension on request) |
| Comparable precedent | Next.js GHSA-mq59-m269-xvcx ("null origin can bypass Server Actions CSRF checks"), CVSS 5.3, fixed Next.js 16.1.7 |
| References | OWASP CSRF cheat sheet; Fetch spec § CORS-safelisted request-header (text/plain). |
Workarounds (publish-safe)
Until a framework-level fix is released, operators can mitigate by placing an Origin-validating reverse proxy or middleware in front of waku that rejects requests whose Origin header does not match the application's host on POST requests to the configured rscBase prefix. Note that Vite's server.allowedHosts guard (which rejects unrecognized Host headers with HTTP 403) applies only to waku dev; production deployments using waku build && waku start do not have an equivalent guard and are fully exposed without an external mitigation layer.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-70654
GHSA-75w3-gmqx-993q
NVD
CVE.org
EPSS
Exploit-DB