Skip to main content

waku EUVDEUVD-2026-70655

| CVE-2026-49456 LOW
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-07-08 https://github.com/wakujs/waku GHSA-43fc-v873-qw85
3.1
CVSS 3.1 · Vendor: https://github.com/wakujs/waku
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft URL embedding malicious redirect parameter
  2. Delivery
    Deliver phishing link to target victim
  3. Exploit
    Victim clicks link and requests vulnerable waku endpoint
  4. Execution
    Application passes query param unvalidated to unstable_redirect()
  5. Persist
    handler.ts reflects value directly into Location header
  6. Impact
    Browser follows 307 redirect to attacker-controlled phishing domain

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
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

Exploitation requires that an application developer has written code that passes user-controlled input - such as a URL query parameter (?next=, ?redirect=, ?returnTo=) - directly to unstable_redirect() without prior sanitization. This is precisely the pattern the framework documentation describes for post-authentication redirects, making it realistic. The attacker must additionally be able to deliver a crafted URL to a victim and persuade them to click it (UI:R per CVSS). Waku applications that do not pass user-controlled strings to unstable_redirect() are not affected. Node.js deployments benefit from platform-level CRLF rejection in header assignment (ERR_INVALID_CHAR), but this protection is absent on Cloudflare Workers, Deno Deploy, and Vercel Edge. No authentication is required of the attacker (PR:N per CVSS vector); the victim need not be authenticated either, though the attack is most impactful at post-login redirect points.

Impact

The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N) yields a base score of 3.1, classified Low. The AC:H metric reflects the prerequisite that application code must pass user-controlled input to unstable_redirect() - a condition beyond the attacker's direct control but one the official documentation actively encourages, making it realistic in production deployments. The I:L and C:N ratings capture only the direct impact of the redirect itself and not the downstream phishing or credential-harvesting risk, meaning the raw CVSS score structurally underrepresents real-world harm for this CWE. No EPSS data is present in the available intelligence; KEV status is not confirmed, and the reporter's dynamic PoC is not confirmed as publicly released, placing exploitation status below the 'publicly available exploit code' threshold. Because waku is a beta-stage framework with a limited production footprint, aggregate exposure is low. However, any waku application implementing a post-authentication or OAuth callback redirect pattern - precisely the documented use case - is concretely and trivially exploitable once a victim clicks a crafted link. The absence of a confirmed patch amplifies urgency for affected deployments.

Exploit ScenarioDerived

An attacker identifies a waku application with a post-login redirect endpoint that passes a next or returnTo query parameter to unstable_redirect(), crafts a URL such as /login?next=//evil.example/harvest, and distributes it via phishing email. When a victim clicks the link, authenticates, and the server calls unstable_redirect(req.query.next), the browser receives a 307 response with Location: //evil.example/harvest and navigates silently to the attacker's credential-harvesting page. The reporter confirmed this scenario in two independent Docker-based dynamic runs against waku 1.0.0-beta.0.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Open redirect in waku's unstable_redirect() server-side router helper allows a network attacker to redirect victims' browsers to arbitrary external domains - including phishing sites for credential harvesting and OAuth token theft - by injecting a malicious location string into any waku route that passes user-controlled query parameters to the function. The vulnerability affects waku 1.0.0-beta.0 across all supported runtime adapters (Node.js, Cloudflare Workers, Vercel Edge, Deno), as the reflection path in handler.ts is shared. A dynamic proof-of-concept was confirmed by the reporter in two independent Docker-based runs against commit 8e9f542; no vendor-released patch is confirmed at time of analysis, though a v1.0.0-beta.1 release tag appears in advisory references.

RemediationAI

No vendor-released patch has been confirmed at time of analysis. The advisory references a v1.0.0-beta.1 release at https://github.com/wakujs/waku/releases/tag/v1.0.0-beta.1 - operators should inspect this release for the fix and upgrade if it addresses GHSA-43fc-v873-qw85. Until a patch is confirmed, apply application-level input validation at every call site of unstable_redirect(): reject any location value that does not begin with exactly one / (blocking //evil.example scheme-relative bypasses), and reject strings containing control characters (\x00-\x1f). Do not rely solely on https?:// prefix rejection, as scheme-relative URLs circumvent this filter. Adding an explicit allowlist of permitted redirect destinations - limiting acceptable values to known application paths - is the most robust compensating control. Be aware that CRLF injection protection in the Location header is provided by Node.js via ERR_INVALID_CHAR, but this is platform-specific and is NOT guaranteed on Cloudflare Workers, Deno Deploy, or Vercel Edge; a cross-runtime CRLF audit is recommended before relying on this as a defense.

Affected VersionsENISA

waku < 1.0.0-beta.1

Affected Packages

npm waku fix: 1.0.0-beta.1

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 React-based full-stack framework distributed as the waku npm package (CPE: pkg:npm/waku). The affected API is unstable_redirect() exported from waku/router/server, implemented in packages/waku/src/router/define-router.tsx at lines 156-161. The function accepts an arbitrary location: string and throws it as a custom error via createCustomError(), which propagates through getErrorInfo() in the request handler (handler.ts:79-89). At line 87, headers.location = info.location places the raw, unvalidated string directly into the HTTP Location response header before returning a 3xx Response. CWE-601 (URL Redirection to Untrusted Site) is the root cause: no scheme restriction is applied, no path-only enforcement exists, and scheme-relative URLs such as //evil.example/ bypass any naive https?:// prefix checks developers might add as ad-hoc defenses. The JSDoc comment reads 'only URL pathname is supported', but this is purely documentary - no runtime enforcement is present in the framework code.

Know when Open Redirect gets its next vulnerability

  • 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

Vendor (https://github.com/wakujs/waku) PRIMARY 3.1 LOW
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

AC:L because crafting the exploit URL is trivial once vulnerable code is deployed; UI:R requires victim click; no direct C or A impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/wakujs/waku).

CVSS VectorVendor: https://github.com/wakujs/waku

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

The unstable_redirect() helper exported from waku/router/server (packages/waku/src/router/define-router.tsx:156-161) accepts an arbitrary string and reflects it unchanged into the HTTP Location response header with no URL validation, scheme restriction, or path-only enforcement. Any application that passes user-controlled input to this helper - the natural pattern documented in the JSDoc and official fixtures - is vulnerable to open redirect attacks. An attacker who convinces a victim to click a crafted link can silently redirect the browser to an arbitrary external domain, enabling phishing, credential harvesting, and OAuth token theft. Additionally, scheme-relative URLs (//evil.example/) bypass naive https?://-only allow-list filters that developers might add as ad-hoc mitigations.

Dynamic PoC confirmed against waku 1.0.0-beta.0 (commit 8e9f542) in an isolated Docker environment. Two independent dynamic runs produced identical results.

---

Root Cause

packages/waku/src/router/define-router.tsx:156-161:

ts
export function unstable_redirect(
  location: string, // only URL `pathname` is supported.
  status: 303 | 307 | 308 = 307,
): never {
  throw createCustomError('Redirect', { status, location });
}

The JSDoc comment states "only URL pathname is supported", but this constraint is expressed as documentation only - the function performs no validation. The location value propagates via createCustomError (custom-errors.ts:22-26) into an error digest, is recovered by getErrorInfo in the request handler (handler.ts:79-89), and reflected directly into headers.location of the outgoing Response with no sanitization:

ts
if (info?.location) {
  headers.location = info.location;   // handler.ts:87 - unvalidated reflection
}
return new Response(body, { status, headers });

---

Trigger (one-line summary)

Any developer-supplied user input passed to unstable_redirect() is reflected unchanged into the HTTP Location header, enabling navigation to an attacker-controlled domain.

---

Affected Entry Surfaces

  • unstable_redirect(location, status?) - waku/router/server public export
  • Any page/route component that passes searchParams, query, or other user-

controlled strings to unstable_redirect (the standard post-login or callback redirect pattern)

  • All waku adapters (Node.js, Cloudflare Workers, Vercel Edge, Deno) share the same

handler.ts reflection path; cross-runtime CRLF parity is unaudited (see note below)

---

Additional Defense-in-Depth Concern

On Node.js, CRLF injection via the Location header is rejected by node:_http_outgoing.setHeader (ERR_INVALID_CHAR). This defense is platform-specific and not present in the waku source. Cloudflare Workers, Deno Deploy, and other edge runtimes have not been verified to offer equivalent protection. A cross-runtime audit is recommended.

---

Suggested Fix Outline

Validate the location argument inside unstable_redirect before the error is thrown: reject any value that does not begin with a single / (no //), and reject any value containing control characters (\x00-\x1f). An opt-in allow-list for intentional cross-origin redirects can be provided via a framework configuration option.

---

Disclosure

FieldValue
Reporterj0hndo (dohyun4466@gmail.com)
Discovery date2026-05-17
Embargo90 days from acknowledgment
Patched versionNot yet available
Public referencesCWE-601; OWASP A01:2021

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
Beta-stage niche React framework, limited production footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy