# CVE-2026-45711: Mailpit: Path traversal & arbitrary file write in mailpit dump --http via attacker-controlled message IDs

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-20 · Modified: 2026-07-21
- Aliases: GHSA-qx5x-85p8-vg4j, GO-2026-5599
- Record: https://cvemate.com/vulnerability/CVE-2026-45711 · JSON: https://cvemate.com/vulnerability/CVE-2026-45711/json

## Description

```text
Mailpit is an email testing tool and API for developers. Prior to version 1.30.0, the mailpit dump --http <base-url> <out-dir> sub-command downloads every message from a remote Mailpit instance and writes each one as <id>.eml inside the user-supplied output directory. The message ID field is taken verbatim from the JSON response of the remote server and concatenated into the output path with path.Join, which silently normalizes `..` segments. A malicious HTTP server impersonating Mailpit can therefore make mailpit dump write attacker-controlled bytes to any path the running user can write, fully outside the intended output directory. Version 1.30.0 contains a patch.
```

## Signals

- CVSS: 8.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- EPSS: 0.311%, percentile 25.837%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- axllent mailpit: \< 1.30.0
- github.com/axllent mailpit (Go): \< 1.30.0

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-qx5x-85p8-vg4j>
- <https://github.com/axllent/mailpit/releases/tag/v1.30.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45711>
- <https://github.com/axllent/mailpit>

---

Data as of 2026-12-05T18:29:39.142Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
