{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45711","id":"CVE-2026-45711","title":"Mailpit: Path traversal & arbitrary file write in mailpit dump --http via attacker-controlled message IDs","description":"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.","descriptionLong":"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.","published":"2026-07-20T14:39:06.690Z","updated":"2026-10-28T02:30:34.016514320Z","reserved":"2026-05-13T05:51:48.665Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","rating":"high","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["axllent mailpit"],"affectedProducts":[{"vendor":"axllent","product":"mailpit","defaultStatus":null,"versions":[{"version":"< 1.30.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/axllent/mailpit","purl":"pkg:golang/github.com/axllent/mailpit","ranges":["<1.30.0"],"fixed":["1.30.0"],"advisory":"GHSA-qx5x-85p8-vg4j"}],"cwes":["CWE-22","CWE-829"],"aliases":["GHSA-qx5x-85p8-vg4j","GO-2026-5599"],"references":[{"url":"https://github.com/axllent/mailpit/security/advisories/GHSA-qx5x-85p8-vg4j","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/axllent/mailpit/releases/tag/v1.30.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45711.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45711","tags":["advisory"]},{"url":"https://github.com/axllent/mailpit","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00389,"epssPercentile":0.338,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45711","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45711","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45711","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qx5x-85p8-vg4j","ok":true,"note":"GHSA-qx5x-85p8-vg4j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45711","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}