Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend reset request with forged Host header
-
DeliveryServer emails poisoned reset link to victim
-
ExploitVictim clicks attacker-domain link
-
ExecutionAttacker captures single-use reset token
-
ImpactRedeem token to seize account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
|
| Exploitation Conditions | Exploitable only on the Mailflare Node self-host deployment (e.g. the documented Docker setup) where APP_URL is unset - which is the default, since APP_URL is commented out in both shipped example env files (.env.docker.example and .dev.vars.example) - and where no reverse proxy pins or validates the Host header. Turnstile is also bypassed by default because verifyTurnstileToken returns true when TURNSTILE_SECRET_KEY is unset. Limiting factors: the attacker must know the victim's email address, and the victim must actually open and click the emailed reset link (UI:P/UI:R), after which the live token must still be redeemed within its 30-minute single-use window. The flaw is NOT exploitable on the Cloudflare Workers deployment, where the edge normalizes the Host header to the routed hostname, nor on any install that explicitly sets APP_URL or fronts the app with a Host-validating proxy. |
| Impact | Signals mostly align on a serious but deployment-conditional account-takeover flaw. The input CVSS 4.0 base score is 8.6 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N), and the GHSA advisory independently rates it CVSS 3.1 9.3 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N); both reflect unauthenticated network reach with high confidentiality and integrity impact, gated by victim interaction. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active or widespread exploitation - exploitation status is best described as a public PoC reference existing (step-by-step curl PoC in the GHSA advisory) that is not verified as working exploit code; do not conflate this with active exploitation. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a high-impact issue that is not under confirmed attack. The most important nuance, confirmed by the advisory, is that this is exploitable only on the Node self-host deployment with APP_URL unset and no Host-pinning reverse proxy - it is NOT exploitable on the Cloudflare Workers deployment, where the edge normalizes the Host header. This caps real-world blast radius to self-hosters on default config. Note also that CVSS treats this as AC:L/network, but success additionally requires the attacker to know the victim's email and the victim to click a correctly-branded reset link (UI:P/UI:R), which the raw score partially but not fully captures. Net: a genuine priority for exposed self-hosted instances, but overall risk is bounded by small deployment footprint and the no-KEV/no-EPSS picture rather than a high-CVSS-but-trivial issue. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a password-reset request for a known victim email to a Node self-hosted Mailflare instance (APP_URL unset) while forging the Host header to a domain they control; the server builds the reset link from that header and emails it to the victim, and when the victim clicks the correctly-branded link the live single-use token is delivered to the attacker, who redeems it to set a new password and take over the account. A concrete step-by-step PoC (curl requests) is published in the GHSA advisory; it is not verified as working exploit code. The CVSS AV:N/AC:L/UI:P profile means the only real friction is knowing the email and getting the victim to click. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Account takeover in Mailflare's password-reset flow lets an unauthenticated remote attacker have a victim's live reset token mailed to a domain they control on Node self-hosted installs that leave APP_URL unset. Because the reset link is built from the request's Host header (env.APP_URL?.trim() || new URL(request.url).origin), a forged Host on POST /api/auth/password-reset/request produces a correctly branded email pointing at the attacker's server, which captures the single-use token when the victim clicks and redeems it against the real /api/auth/password-reset/confirm endpoint to set a new password and invalidate the owner's sessions. Exploitation requires the Node self-host deployment with no Host-pinning proxy, knowledge of the victim's email address, and victim interaction within the 30-minute token window; the Cloudflare Workers deployment is not affected because the edge normalizes Host, and the advisory includes a step-by-step PoC reference that is not verified as working exploit code. No CISA KEV entry or EPSS score was supplied; the vuln.today decision label is this_week.
RemediationAI
Apply the upstream fix at commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e (advisory GHSA-f3p5-jm88-58h3); a tagged release containing it is not independently confirmed from the supplied data, so track the repository rather than assuming a published version number. If you cannot update immediately, set APP_URL to the installation's exact public URL - this is the documented control, and after patching it also becomes mandatory on Node self-hosts, because the fixed code refuses to send reset mail at all when no trusted origin is available (users will silently receive no reset email until APP_URL is configured). Additionally, configure TURNSTILE_SECRET_KEY so the reset endpoint is not effectively ungated, and pin or validate the Host header at the reverse proxy, rejecting requests whose Host does not match the canonical hostname, since the unpatched code trusts it verbatim. Note the trade-offs: APP_URL fixes the link origin but does not clean up tokens already issued, so consider invalidating outstanding reset tokens and forcing session invalidation for accounts that received suspicious reset mail; proxy Host validation breaks access via alternate hostnames or IP-based URLs and must be kept in sync with any domain changes. The Cloudflare Workers deployment requires none of these steps for this specific flaw.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mailflare is a Next.js mail application shipped in two runtime modes: a Cloudflare Workers deployment and a Node self-host (the documented Docker setup), and the vulnerability is specific to the latter. On Node, server/index.ts hands the raw Node request to Next's handler after stripping only client-forwarded IP headers, so request.url - and therefore new URL(request.url).origin - is derived from a Host header the client fully controls; there is no middleware.ts and no trustHostHeader or host allow-list in next.config.ts. The password-reset route at src/app/api/auth/password-reset/request/route.ts:35 falls back to that origin whenever APP_URL is unset, and APP_URL is commented out in both shipped example env files (.env.docker.example and .dev.vars.example), making the unsafe fallback the default. The only request gates are a per-IP rate limit and Turnstile, and verifyTurnstileToken returns true when TURNSTILE_SECRET_KEY is unset, which is also the default. The root cause class is CWE-640 (Weak Password Recovery Mechanism for Forgotten Password) via host header injection: a live credential is embedded in a URL whose origin is taken from requester-controlled input. Notably the redemption path itself is hardened (hashed token, 30-minute expiry, single-use conditional update, security-state re-check), so the defect is purely in link construction; the same APP_URL-origin fallback appears in other routes, but password reset is the highest-impact instance because it mails a redeemable secret. The upstream fix commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e introduces trustedResetOrigin, which prefers APP_URL, returns null for the Node runtime without APP_URL (so no reset mail is sent at all), and only uses the request origin on Workers where the edge rejects foreign Host values.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Unauthenticated network request on default self-host config (AC:L/PR:N), but success needs victim to click the reset link (UI:R); token theft yields account takeover (C:H/I:H), no availability impact, same security authority so S:U.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
Mailflare before 48957fb contains a host header injection vulnerability in the password-reset request handler that allows unauthenticated attackers to poison reset links when APP_URL is unset. Attackers can submit a reset request for a victim's email with a malicious Host header, capturing the single-use token when the victim clicks the link to take over the account.
Technical POC Analysis
CWE-640 (Weak Password Recovery Mechanism for Forgotten Password), realised here as Host header injection into reset-link construction.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-134654 is a high-severity account takeover vulnerability in Mailflare's self-hosted Node deployments that allows unauthenticated attackers to hijack user accounts, including administrators, via a crafted password reset request. This puts customer data, system integrity, and brand trust at risk for organizations running the affected configuration.
Set APP_URL explicitly or enforce Host header validation at the proxy; monitor password reset flows for anomalies.
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.
EUVD-2026-132629
GHSA-g73v-c7q3-v8c9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB