Patchfirst
CVE-2026-21859 Public exploit Medium · 5.8 EPSS 0.8%

Mailpit Proxy Endpoint is Vulnerable to Server-Side Request Forgery (SSRF)

Fix:upgrade mailpit to 1.28.1 or later Details ↓

axllent · mailpit

Summary

Mailpit, an email testing tool and API for developers by axllent, contains a Server-Side Request Forgery flaw in its /proxy endpoint, which validates http:// and https:// schemes but does not block internal IP addresses. An unauthenticated remote attacker can use the endpoint to make HTTP GET requests with minimal headers to internal network resources, reaching internal services and APIs.

Official description · CVE.org

Mailpit is an email testing tool and API for developers. Versions 1.28.0 and below have a Server-Side Request Forgery (SSRF) vulnerability in the /proxy endpoint, allowing attackers to make requests to internal network resources. The /proxy endpoint validates http:// and https:// schemes, but it does not block internal IP addresses, enabling attackers to access internal services and APIs. This vulnerability is limited to HTTP GET requests with minimal headers. The issue is fixed in version 1.28.1.

Breakdown
63.6 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 35 days after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+35 days

See the family tree

A fix was bypassed or incomplete once over 6 months. The latest fix listed for github.com/axllent/mailpit is 1.28.3.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2026-21859Mailpit Proxy Endpoint is Vulnerable to Server-Side Request…7 Jan 2026
  2. relatedMedium

    Why these are linked:

    CVE-2026-27808Mailpit is Vulnerable to Server-Side Request Forgery (SSRF) via…25 Feb 2026
  3. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textPrior to 1.30.2, the remediation shipped for CVE-2026-27808 is incomplete because the tools.IsInternalIP deny-list in internal/tools/net.go relies on Go's standard library classification helpers and does not block IPv6 transition mechanis…
    • Same code patched: net.go (machine-matched)commit 10ad4dfcommit a88dadb
    CVE-2026-55187Mailpit: Incomplete SSRF protection in Link Check API via IPv6…10 Jul 2026

Fixes in github.com/axllent/mailpitGo package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.28.1CVE-2026-218597 Jan 2026
  2. 1.28.2CVE-2026-2268910 Jan 2026
  3. 1.28.3CVE-2026-2382918 Jan 2026
  4. 1.28.3CVE-2026-2384519 Jan 2026Latest listed

Affected versions and fixes

as published in the CVE record

axllent mailpit

Affected: < 1.28.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/axllent/mailpit.

Gogithub.com/axllent/mailpitGHSA-8v65-47jx-7mfrGO-2026-4284

Upgrade to 1.28.1 or later

Gogo get github.com/axllent/mailpit@v1.28.1

The first fix for CVE-2026-21859. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.28.11.28.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 32 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close