Description
Mailpit is an email testing tool and API for developers. From 1.29.0 until 1.30.6, Mailpit's server/server.go origin middleware checks the raw RequestURI for the /api/ prefix while Go's ServeMux routes using the percent-decoded URL path, and server/websockets/client.go configures websocket.Upgrader.CheckOrigin to return true. A malicious website can request /%61pi/events, skip corsOriginAccessControl(), reach the /api/events WebSocket handler, and receive live message IDs, Message-Id values, sender and recipient fields, subjects, tags, and body snippets from an unauthenticated default Mailpit instance after the user visits the site. This is a regression of the earlier WebSocket origin protection and does not affect deployments protected by --ui-auth-file. This issue is fixed in version 1.30.6.
Published: 2026-08-20
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mailpit’s origin middleware incorrectly checks the raw RequestURI for an "/api/" prefix while Go routing uses the percent‑decoded URL path. Because the websocket.Upgrader.CheckOrigin is set to always return true, a malicious site can request an endpoint such as "/%61pi/events", bypass corsOriginAccessControl(), and reach the /api/events WebSocket handler. This allows unauthenticated users to receive live message IDs, Message‑Id values, sender and recipient fields, subjects, tags, and body snippets from a default Mailpit instance. The weakness is a CWE‑177 literal interpretation of policy combined with CWE‑200 information exposure and CWE‑346 path traversal.

Affected Systems

Affected systems are the axllent:mailpit product, specifically Mailpit versions 1.29.0 through 1.30.6 (the vulnerability is fixed in 1.30.6). Deployments that do not use the optional --ui-auth-file configuration are directly exposed.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. EPSS is not available, and the vulnerability is not listed in CISA KEV. The likely attack vector is a browser‑based web page that submits a WebSocket request with a percent‑encoded path. No authentication or privilege is required to exploit it, but the compromised data may be sensitive for users who rely on Mailpit’s email testing tool.

Generated by OpenCVE AI on August 21, 2026 at 01:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mailpit to version 1.30.6 or later to remove the origin mitigation regression
  • Enable the --ui-auth-file option to require authentication for all API and WebSocket access
  • Configure network controls or firewall rules to restrict unauthenticated WebSocket connections to privileged hosts

Generated by OpenCVE AI on August 21, 2026 at 01:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8r62-w5wh-fc5m Mailpit: WebSocket origin check bypass via percent-encoded path (regression of CVE-2026-22689)
History

Fri, 21 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Axllent
Axllent mailpit
Vendors & Products Axllent
Axllent mailpit

Thu, 20 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
Description Mailpit is an email testing tool and API for developers. From 1.29.0 until 1.30.6, Mailpit's server/server.go origin middleware checks the raw RequestURI for the /api/ prefix while Go's ServeMux routes using the percent-decoded URL path, and server/websockets/client.go configures websocket.Upgrader.CheckOrigin to return true. A malicious website can request /%61pi/events, skip corsOriginAccessControl(), reach the /api/events WebSocket handler, and receive live message IDs, Message-Id values, sender and recipient fields, subjects, tags, and body snippets from an unauthenticated default Mailpit instance after the user visits the site. This is a regression of the earlier WebSocket origin protection and does not affect deployments protected by --ui-auth-file. This issue is fixed in version 1.30.6.
Title Mailpit: WebSocket origin check bypass via percent-encoded path (regression of CVE-2026-22689)
Weaknesses CWE-177
CWE-200
CWE-346
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T11:31:27.439Z

Reserved: 2026-07-29T15:07:24.992Z

Link: CVE-2026-67448

cve-icon Vulnrichment

Updated: 2026-08-21T11:31:24.288Z

cve-icon NVD

Status : Received

Published: 2026-08-20T22:17:56.870

Modified: 2026-08-21T12:16:30.947

Link: CVE-2026-67448

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:30:05Z

Weaknesses
  • CWE-177

    Improper Handling of URL Encoding (Hex Encoding)

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-346

    Origin Validation Error