CVE-2026-45711: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in axllent mailpit
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.
AI Analysis
Technical Summary
Mailpit versions before 1.30.0 contain a path traversal vulnerability (CWE-22) in the 'dump --http' sub-command. The command downloads email messages from a remote Mailpit server and writes each message as <id>.eml in a specified output directory. The message ID is used verbatim from the remote JSON response and concatenated into the output path using path.Join, which normalizes '..' segments silently. A malicious HTTP server impersonating Mailpit can exploit this to write files to arbitrary locations writable by the user running mailpit, outside the intended output directory. This vulnerability allows attacker-controlled file writes, impacting integrity and availability. Version 1.30.0 includes a patch that addresses this issue.
Potential Impact
An attacker controlling a malicious HTTP server impersonating a Mailpit instance can exploit this vulnerability to cause the mailpit client to write files to arbitrary locations on the local filesystem where the user has write permissions. This can lead to unauthorized file modification or creation, impacting the integrity of the system and potentially causing denial of service. There is no confidentiality impact reported. The CVSS v3.1 score is 5.9 (medium severity), reflecting network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.
Mitigation Recommendations
A patch is available in mailpit version 1.30.0 that fixes this path traversal vulnerability. Users should upgrade to version 1.30.0 or later to remediate this issue. Until upgraded, users should avoid using the 'mailpit dump --http' sub-command with untrusted or unauthenticated remote Mailpit instances to prevent exploitation.
CVE-2026-45711: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in axllent mailpit
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.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.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Mailpit versions before 1.30.0 contain a path traversal vulnerability (CWE-22) in the 'dump --http' sub-command. The command downloads email messages from a remote Mailpit server and writes each message as <id>.eml in a specified output directory. The message ID is used verbatim from the remote JSON response and concatenated into the output path using path.Join, which normalizes '..' segments silently. A malicious HTTP server impersonating Mailpit can exploit this to write files to arbitrary locations writable by the user running mailpit, outside the intended output directory. This vulnerability allows attacker-controlled file writes, impacting integrity and availability. Version 1.30.0 includes a patch that addresses this issue.
Potential Impact
An attacker controlling a malicious HTTP server impersonating a Mailpit instance can exploit this vulnerability to cause the mailpit client to write files to arbitrary locations on the local filesystem where the user has write permissions. This can lead to unauthorized file modification or creation, impacting the integrity of the system and potentially causing denial of service. There is no confidentiality impact reported. The CVSS v3.1 score is 5.9 (medium severity), reflecting network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.
Mitigation Recommendations
A patch is available in mailpit version 1.30.0 that fixes this path traversal vulnerability. Users should upgrade to version 1.30.0 or later to remediate this issue. Until upgraded, users should avoid using the 'mailpit dump --http' sub-command with untrusted or unauthenticated remote Mailpit instances to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T05:51:48.665Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5e3e5d2a4a8d5989464d9b
Added to database: 07/20/2026, 15:27:25 UTC
Last enriched: 07/20/2026, 15:42:44 UTC
Last updated: 07/21/2026, 05:55:25 UTC
Views: 14
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.