Skip to content

Security: axllent/mailpit

.github/SECURITY.md

Security policy

Your efforts to responsibly disclose your findings are appreciated. Please read this whole document before submitting a report, as it explains what Mailpit is designed for and what is considered in scope.

Threat model

Mailpit is a local development and testing tool for capturing email. It is intended for developers working on their own machine, or in local, CI/CD and trusted-network environments.

Mailpit is not a production mail server, and it is not designed to be exposed to the public internet or to untrusted networks.

By design:

  • The web UI, API, SMTP and POP3 services accept connections without authentication unless the operator enables it.
  • Mailpit accepts, stores and displays any email sent to it, including hostile or malformed messages. That is its purpose.
  • Authentication, TLS, access restrictions and rate limiting are opt-in features for operators who choose to expose an instance beyond a trusted environment. Securing the network around Mailpit is the responsibility of the operator.

A finding that only works because an attacker can already reach a default, unauthenticated instance is expected behaviour, not a vulnerability. Assuming that Mailpit is "exposed to an untrusted network" is not a valid precondition for a report.

What we consider a vulnerability

A report is likely to be treated as a security vulnerability when it:

  • affects a default deployment,
  • can be exploited without the operator having misconfigured or deliberately exposed the instance, and
  • has a meaningful impact for a development and testing tool, for example a captured email compromising the developer's browser session or host.

A flaw that bypasses a protection the operator has explicitly enabled (authentication, TLS, etc.) may also qualify, even though that protection is opt-in.

What is generally out of scope

The following are not considered vulnerabilities and may be closed without a detailed response:

  • Any report that assumes Mailpit is deployed on the public internet or an untrusted network.
  • Missing authentication, rate limiting, CSRF tokens, security headers or similar hardening on a default deployment.
  • Issues that only occur when a non-default option is enabled. These are treated as normal bug fixes rather than security advisories, unless they bypass a protection the operator has explicitly enabled (see above).
  • Denial of service or resource exhaustion by someone who can already send unlimited messages or requests to an unauthenticated instance.
  • Displaying, or giving access to, the content of captured emails to anyone who can reach the UI or API. This is the intended function.
  • Output from automated scanners, dependency audits or AI tools with no demonstrated, reachable exploit path in Mailpit.
  • Theoretical issues without a working proof of concept.

Some of these may still be real bugs. If so, they will be fixed through the normal release process, rather than through a security advisory or CVE.

Reporting a vulnerability

Please do not report security vulnerabilities through public GitHub issues.

You can report a suspected vulnerability using one of the following methods:

  1. GitHub Security Advisory (recommended): use the "Report a vulnerability" button in the Security tab of this repository.
  2. Email: send your findings to security@axllent.org

Your report must include:

  • The Mailpit version, and how it was installed or run.
  • The exact command line flags, environment variables and configuration used. Reports should be reproducible with default or documented settings.
  • A clear description of the vulnerability and its real-world impact.
  • Step-by-step reproduction instructions, ideally with a working proof of concept that you have run against a real Mailpit instance.
  • Any severity rating (such as a CVSS vector) justified against the threat model above. Ratings that assume network exposure of an unauthenticated instance will not be accepted without evidence that a default deployment is exposed that way.
  • Any other details you think are likely to be important.

Use of AI tools

You are welcome to use AI tools to assist your research. However, you are responsible for the report:

  • State clearly if AI tools were used to find the issue or to write the report.
  • Manually verify the finding against a running instance before submitting. Reports containing unverified or fabricated claims, such as functions, flags or behaviours that do not exist, may be closed and further reports from the same source deprioritised.

What to expect

You should receive an initial acknowledgement within a few days in most cases, and will be kept updated throughout the process where the report is accepted for investigation.

Valid reports will be fixed and released as soon as practical. Whether a fix is accompanied by a security advisory depends on the impact on default deployments, as described above. Where a report is declined as an advisory, the reasoning will be explained.

Mailpit does not request CVE identifiers for issues that are out of scope under this policy. If a CVE is requested by a third party for such an issue, we may dispute it with the relevant CNA.

Learn more about advisories related to axllent/mailpit in the GitHub Advisory Database