Mailflare account takeover in password reset via host header
Affects self-hosted Mailflare deployments (e.g. Docker) where APP_URL and TURNSTILE_SECRET_KEY are unset. No fixed version is listed in the available data.
- Exploited
- No known exploitation
- Fix
- Fix or patch referenced
- Who is exposed
- Specific setups only
Summary
Mailflare, a product from hieunc229, has a host header injection flaw in its password-reset handler. When the APP_URL setting is unset, an attacker can remotely, without logging in, send a reset request for a victim's email with a malicious Host header, then capture the single-use reset token once the victim clicks the link and take over the account.
Written by a model
Original description
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.
Who should check
Teams running Mailflare's Node self-host deployment (e.g. Docker) without APP_URL set, especially any instance not on Cloudflare Workers
“Mailflare before 48957fb contains a host header injection vulnerability in the password-reset request handler”
What to do
Check whether your setup matches what the bug needs.
Self-hosted Node deployment (e.g. Docker) where APP_URL is unset TURNSTILE_SECRET_KEY unset, so Turnstile is not enforcedApply the patch listed under Evidence.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-134654 (Mailflare before 48957fb Host Header Injection in Password Reset), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-134654 (entry last updated 2026-11-22):
Affected:
- hieunc229 Mailflare: version range not reported
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Self-hosted Node deployment (e.g. Docker) where APP_URL is unset (source: https://github.com/hieunc229/mailflare/security/advisories/GHSA-f3p5-jm88-58h3)
- TURNSTILE_SECRET_KEY unset, so Turnstile is not enforced (source: https://github.com/hieunc229/mailflare/security/advisories/GHSA-f3p5-jm88-58h3)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, a user action.
CISA KEV: CVE-2026-134654 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134654 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/hieunc229/mailflare/security/advisories/GHSA-f3p5-jm88-58h3
- https://github.com/hieunc229/mailflare/commit/48957fbd6a2d29432fe675a1c7cccbce069f5a6e
- https://github.com/hieunc229/mailflare/blob/7c58b034b5cdcfef56810c310e6854652c04ff04/src/app/api/auth/password-reset/request/route.ts#L35
- https://www.vulncheck.com/advisories/mailflare-before-48957fb-host-header-injection-in-password-reset
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-134654
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134654"}.Affected versions
- hieunc229 MailflareVersion range not reported
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure12/25Specific setups only, reachable over the network without a login
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.6/10CVSS 8.6
- No patch0/5No signal
What would change the score
- Would score about 71 if added to CISA KEV
- Would score about 66 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
Evidence 6
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · hieunc229/mailflare · Advisory GHSA-f3p5-jm88-58h3 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-134654 |
| Record | NVD · CVE-2026-134654 |
| Other links 3 | |
| Patch | GitHub · hieunc229/mailflare · Commit 48957fbd |
| Repository | GitHub · hieunc229/mailflare · src/app/api/auth/password-reset/request/route.ts · L35 |
| Link | vulncheck.com · advisories/mailflare-before-48957fb-host-header-injection-in-password-reset |
Questions about CVE-2026-134654
Is CVE-2026-134654 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Mailflare's password reset is vulnerable to Host Header Injection. An attacker can receive a user's live password-reset token and redeem it to set a new password, taking over the account and locking out the owner.
Source: github.com
Am I affected, and how do I check?
Mailflare versions before commit 48957fb are affected, in self-hosted Node deployments such as Docker where APP_URL is unset. Turnstile is not enforced when TURNSTILE_SECRET_KEY is unset, which is its default. To check a setup, look at whether APP_URL and TURNSTILE_SECRET_KEY are set in the environment or env file in use.
Source: github.com
How do I fix CVE-2026-134654?
Update Mailflare to commit 48957fb or later, which is the version range boundary given for this issue. Setting APP_URL to the site's real address is also relevant to this setup, but the available data does not name it as a fix.
Source: github.com
Related
No corrections so far. Something wrong on this page? Report an error.