Skip to content
eastbaycyber

CVE-2026-134654: Mailflare Host-Header Injection

CVSS · High
8.1
In CISA KEV
No
Published
Nov 22
Patch SLA & TriageVector: Network
7 days

High CVSS (8.1) vulnerability; prioritize internet-facing assets.

Exposure:
Control:
CVSS v3.1 Blast RadiusScore: 8.1
Decode Vector & Sub-Scores →
CVE explainers 10 min read
Security Research Desk Source-checked
Auto-checked against the official CVE record · Human-reviewed after publishing · Updated 2026-11-22
▲ Escalation ViewOne CVE, briefed at three altitudes — skim the Brief, weigh the Impact, or work the Runbook. The way a SOC actually reads it.
CISOBrief · 30-second brief

TL;DR - Mailflare before commit 48957fb can trust a malicious Host header when APP_URL is unset, poisoning password-reset links. - Unauthenticated attackers may capture reset tokens if victims follow attacker-controlled links. - No confirmed active exploitation or public standalone PoC was identified; patch immediately and review reset activity.

CVE-2026-134654 is a high-severity Mailflare vulnerability involving host-header injection in password-reset links. When APP_URL is unset, an attacker may influence the hostname used in a reset message and potentially capture a victim’s single-use password-reset token.

Upgrade to commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e or later, configure a trusted HTTPS APP_URL, validate host headers at the reverse proxy, and investigate reset activity from the vulnerable period.

What Is the Root Cause?

The root cause is unsafe URL construction in the password-reset request handler. Instead of relying on a configured, trusted application origin, the vulnerable deployment can derive the reset-link host from request data when APP_URL is unset.

The HTTP Host header is controlled by the client and must not be treated as an authenticated statement of the application’s canonical hostname.

An attacker can send a reset request with a malicious Host value. If Mailflare uses that value to generate the email link, the reset message can direct the user to an attacker-controlled host or expose the token during the reset flow. The affected handler is:

src/app/api/auth/password-reset/request/route.ts

The configuration dependency matters. A deployment with a correctly set, trusted APP_URL may not follow the vulnerable code path in the same way, but operators should not treat configuration as a substitute for upgrading. Host-header validation, canonical URL configuration, and secure token handling remain separate defensive controls.

The available research identifies the vulnerable state as Mailflare revisions before commit 48957fb. It does not provide a conventional semantic version such as 1.2.3. Administrators must compare the deployed source revision or image contents with the fixed commit rather than assume that a product version establishes vulnerability status.

For related guidance on evaluating third-party exposure and supplier controls, see the third-party risk glossary.

AnalystImpact · assess the risk

What Happened?

CVE-2026-134654 affects Mailflare’s password-reset request handler. When APP_URL is not configured, the vulnerable code can construct a reset URL using attacker-controlled host information from the HTTP request.

The resulting link may still be delivered to the legitimate account holder. If the victim follows the poisoned link, an attacker may capture the single-use reset token and use it to take over the account. This is more serious than a malformed URL or branding issue because it can affect account confidentiality and integrity.

Field Value
CVE CVE-2026-134654
CVSS base score 8.1, High
CVSS vector Not included in the supplied NVD response; verify directly in the full NVD record
Attack vector Network
Authentication required None
Patch available Commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e or later
Exploitable condition APP_URL is unset
Affected product Mailflare
Affected boundary Revisions before commit 48957fb

The attack requires a vulnerable deployment, a password-reset request for a target account, and user interaction with the resulting reset message. Those conditions reduce exploit reliability compared with a fully automatic server-side compromise, but they do not make the vulnerability low risk. Password-reset workflows are security-sensitive and commonly exposed to the public internet.

Who Needs to Act?

All organizations running Mailflare from a revision before 48957fb should treat the deployment as potentially vulnerable. The specific fixed revision identified in the available advisory data is:

48957fbd6a2d29432fe675a1c7cccbce069f5a6e

The vulnerable range is:

  • Mailflare revisions before commit 48957fb
  • Especially exposed: deployments where APP_URL is unset

A deployment at the fixed commit or a later revision containing the fix should still be checked for configuration and infrastructure issues. The application should use a canonical HTTPS origin, and reverse proxies should not pass arbitrary external Host values into URL-generation logic without validation.

Operators using containers, automated builds, or downstream forks should identify the exact source revision included in the deployed artifact. A tag or image label that does not map clearly to a Git commit is insufficient evidence of remediation. Record the deployed revision, compare it with the fixed commit, and verify that the running artifact—not merely the repository checkout—contains the correction.

Prioritize:

  • Externally reachable Mailflare instances
  • Installations handling privileged or administrative accounts
  • Environments where password-reset email is processed through systems accessible to untrusted parties
  • Deployments where APP_URL was unset during the vulnerable period

If APP_URL was unset while a vulnerable revision was deployed, assume reset tokens may have been exposed unless logs and application behavior establish otherwise.

Why Is the CVSS Score High?

CVE-2026-134654 has a reported CVSS base score of 8.1 (High). The supplied NVD response did not include the complete CVSS vector, so the vector components must be verified directly against the full NVD record before publication or automated prioritization.

The following interpretation is based on the described attack path and should not be presented as the authoritative vector.

The network attack path and lack of authentication are consistent with a high-severity rating. An attacker can submit a password-reset request remotely without first logging in, and the relevant endpoint is expected to be reachable through the application’s normal web interface. The vulnerability does not require access to the Mailflare host or local execution privileges.

The impact can include account confidentiality and integrity loss if a reset token is captured and redeemed. Exploitation still depends on the application configuration, successful delivery of the reset message, and the victim following the poisoned link. That user-interaction requirement helps explain why the score is High rather than necessarily Critical.

The vulnerability can enable account takeover, but it is not described as an unauthenticated, no-interaction compromise of the Mailflare server itself. Because the exact vector was absent from the supplied record, defenders should avoid reconstructing individual metrics such as user interaction, scope, or impact values as if they were confirmed.

Retrieve the official NVD record and preserve the published vector when integrating this CVE into risk-scoring systems.

Analyst’s Take: Patch and set a trusted APP_URL first, then review reset activity from the vulnerable period. The absence of KEV coverage or a public standalone PoC lowers the evidence of active exploitation, but it does not remove the exposure created by an externally reachable password-reset flow with an unset APP_URL.

Has CVE-2026-134654 Been Exploited?

No confirmed in-the-wild exploitation was identified in the NVD or CISA Known Exploited Vulnerabilities data reviewed for this assessment. The CVE was not listed in CISA KEV at the assessment date of 22 November 2026.

There is therefore no CISA date-added value, remediation deadline, required-action entry, or ransomware-campaign designation for this record.

No standalone public exploit repository or confirmed public proof of concept was identified in the returned research results. The vulnerable source location, GitHub advisory, and remediation commit are public, giving researchers enough information to understand and potentially reproduce the issue. That technical detail is not evidence that a working exploit has been published or that exploitation is occurring.

The absence of KEV coverage or a known PoC does not prove that exploitation cannot occur. Password-reset poisoning can be performed with ordinary HTTP tooling if an attacker understands the affected request flow. Organizations should prioritize remediation based on exposure and configuration rather than wait for a KEV listing or exploit release.

ResponderRunbook · act now

Detection Guidance

Begin by identifying every Mailflare deployment and recording its:

  • Running source revision
  • Container digest
  • APP_URL state
  • Publicly reachable hostname
  • Reverse-proxy configuration

Search deployment manifests, environment stores, service configuration, and startup logs for APP_URL. An unset, empty, or overridden value should be treated as a high-priority exposure condition until the application is upgraded and tested.

Review web access logs for password-reset requests associated with unusual or untrusted host values. The exact endpoint may vary by deployment, but the referenced handler is:

/api/auth/password-reset/request

A useful generic search pattern is:

grep -Ei \
  '(/api/auth/password-reset/request|password-reset|reset-password)' \
  /var/log/nginx/access.log /var/log/apache2/access.log 2>/dev/null

If logs are structured in JSON, a SIEM query should correlate password-reset requests with the request host and source address. For example, in Splunk-like syntax:

index=web
(uri_path="/api/auth/password-reset/request" OR uri_path="*password-reset*")
| search http_method=POST
| stats count values(host) as hosts values(src_ip) as source_ips
  by user_agent, status
| where mvcount(hosts) > 1 OR count > 10

This is a starting point, not a vendor-specific detection rule. Adapt field names and endpoint paths to the logging stack.

Investigate:

  • Host values that do not match the approved canonical domain
  • Internal proxy names that should not appear externally
  • Requests from unfamiliar or suspicious networks
  • Multiple host-related headers
  • Unexpected ports
  • Internationalized or encoded hostnames
  • Sudden increases in password-reset activity

Technical Detection Notes

A reverse-proxy access-log pattern worth alerting on is a password-reset request whose host differs from the expected origin:

POST /api/auth/password-reset/request HTTP/1.1" 200
Host: [not-approved.example]

The exact status code is not reliable because the application may return the same response for existing and nonexistent accounts. Detection should focus on the combination of endpoint, method, host, source reputation, rate, and subsequent password-reset activity rather than status alone.

For possible compromise, correlate reset requests with:

  • Outbound email events
  • Later token use
  • Account-password changes
  • New sessions
  • Authentication from unusual locations
  • Changes to recovery addresses or multifactor settings

Because reset tokens are generally single-use and may not be logged in plaintext, search for the account and timestamp rather than the token value itself. Preserve relevant email-delivery logs, proxy logs, application logs, and identity-provider events before retention limits remove them.

Remediation and Patching

Upgrade Mailflare to commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e or a later revision containing the fix. The advisory describes the vulnerable range as revisions before 48957fb; no conventional fixed release version was provided in the available data.

For a source-based deployment, perform the upgrade according to the repository’s normal build and deployment process:

git fetch origin
git checkout 48957fbd6a2d29432fe675a1c7cccbce069f5a6e

# Run the project's documented dependency installation and build steps.
# Then deploy the resulting artifact and restart Mailflare.

Checking out the commit alone does not update a running container or service. Rebuild the artifact, deploy it through the organization’s normal change process, and verify the running revision.

For a containerized deployment, use the project’s documented image-build process and confirm the resulting image digest and embedded source revision before rollout.

Set APP_URL to the trusted canonical HTTPS origin used by the deployment:

APP_URL=https://mail.example.com

Use the actual approved Mailflare origin, not a user-supplied or proxy-derived value. After changing the variable, restart or redeploy the application according to its documented configuration process and test the password-reset workflow from an external client.

Reverse-Proxy Hardening

As an interim defense, configure the reverse proxy to accept only approved hostnames and reject unexpected values before they reach Mailflare. A generic Nginx pattern is:

server {
    listen 443 ssl;
    server_name mail.example.com;

    # Existing proxy configuration
    location / {
        proxy_set_header Host $host;
        proxy_pass http://mailflare_upstream;
    }
}

server {
    listen 443 default_server;
    server_name _;
    return 444;
}

This is not a substitute for the Mailflare fix and must be adapted to the organization’s proxy, TLS, and load-balancing design.

Ensure that trusted proxy headers are also controlled. Filtering only the external Host header may be insufficient if an upstream component rewrites or forwards host-related metadata.

Until the upgrade is complete:

  1. Set APP_URL explicitly.
  2. Restrict password-reset access where operationally possible.
  3. Prevent arbitrary hostnames from reaching the application.
  4. Monitor reset requests and outbound reset messages.
  5. Preserve relevant logs.

After patching, invalidate active password-reset tokens issued while the application was vulnerable. If suspicious reset-link activity or token exposure is found:

  • Force password changes for affected accounts.
  • Revoke active sessions where supported.
  • Enable or re-enroll multifactor authentication.
  • Review account activity for unauthorized changes.
  • Notify affected users according to the organization’s incident-response process.

For broader security-readiness preparation, review this SOC 2 preparation guide.

References

  1. NVD-referenced vulnerable password-reset handler:
    https://github.com/hieunc229/mailflare/blob/7c58b034b5cdcfef56810c310e6854652c04ff04/src/app/api/auth/password-reset/request/route.ts#L35

  2. Fix commit 48957fbd6a2d29432fe675a1c7cccbce069f5a6e:
    https://github.com/hieunc229/mailflare/commit/48957fbd6a2d29432fe675a1c7cccbce069f5a6e

  3. GitHub security advisory:
    https://github.com/hieunc229/mailflare/security/advisories/GHSA-f3p5-jm88-58h3

  4. Vulnerability advisory:
    https://www.vulncheck.com/advisories/mailflare-before-48957fb-host-header-injection

  5. Mailflare repository:
    https://github.com/hieunc229/mailflare

The NVD record was reported as published on 22 November 2026 at 02:17 UTC and had not been modified at the time of the referenced retrieval. Before publishing a final severity assessment or integrating the CVE into automated prioritization, verify the full NVD record, especially the missing CVSS vector and any subsequent changes to affected-version metadata or exploitation status.

This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.

Last verified: 2026-11-22

Disclaimer: This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.