---
id: CVE-2026-67448
title: Mailpit is an email testing tool and API for developers
summary: >-
  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,…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-177
  - CWE-200
  - CWE-346
vendor: axllent
product: github.com/axllent/mailpit
affected:
  - 'github.com/axllent/mailpit >= 1.29.0, <= 1.30.5'
patched:
  - github.com/axllent/mailpit 1.30.6
published: '2026-08-20'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:09:01.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-67448'
references:
  - url: >-
      https://github.com/axllent/mailpit/commit/fbe5e006c3f1682b819df58b4a932d7a84920be9
    label: security-advisories@github.com
  - url: 'https://github.com/axllent/mailpit/releases/tag/v1.30.6'
    label: security-advisories@github.com
  - url: 'https://github.com/axllent/mailpit/security/advisories/GHSA-8r62-w5wh-fc5m'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-8r62-w5wh-fc5m'
tags:
  - nvd
  - ghsa
  - go
epss: 0.00146
epssPercentile: 0.0428
aliases:
  - GHSA-8r62-w5wh-fc5m
ecosystem: go
ingestedAt: '2026-08-20T22:02:20.977Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-67448)

Affected packages:

- `github.com/axllent/mailpit >= 1.29.0, <= 1.30.5`

Patched in:

- `github.com/axllent/mailpit 1.30.6`

Source: https://github.com/advisories/GHSA-8r62-w5wh-fc5m
