Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-45711: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in axllent mailpit

0
Medium
VulnerabilityCVE-2026-45711cvecve-2026-45711cwe-22cwe-829
Published: 07/20/2026 (07/20/2026, 14:39:06 UTC)
Source: CVE Database V5
Vendor/Project: axllent
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L

Affected software

GitHub Actionsmore threats →ai
axllent/mailpit
pkg:github/axllent/mailpit
Affected versions
<1.30.0

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

AILast updated: 07/20/2026, 15:42:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses