Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeveloper visits malicious web page
-
DeliveryPage opens WebSocket to localhost:8025/%61pi/events
-
ExploitPercent-encoded path bypasses raw-URI origin check in middleware
-
ExecutionGo ServeMux decodes %61→a, routes request to /api/events handler
-
PersistWebSocket upgrader accepts all origins, handshake returns 101
-
ImpactAttacker receives live stream of email IDs, headers, subjects, and body snippets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization URL encoding handling
|
| Exploitation Conditions | Exploitation requires all three of the following: (1) a Mailpit instance running version 1.29.0-1.30.5 without |
| Impact | The CVSS 6.5 score (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) accurately reflects the attack surface: network-reachable and unauthenticated, but requiring the victim to visit an attacker-controlled page, with high confidentiality impact and no integrity or availability effects. Real-world risk is bounded by Mailpit's deployment profile - it is a developer-facing tool typically bound to localhost, so production PII is rarely at stake and the attack surface is limited to the developer's own machine during an active session. The GHSA advisory confirms a working proof of concept with measured reproduction, meaning the barrier to exploitation is low for anyone who knows the technique; however, no CISA KEV listing and no EPSS data were provided, so widespread automated exploitation is not confirmed. The most credible threat is a malicious npm dependency or phishing page visited while a developer has a Mailpit instance running locally. Instances protected by |
| Exploit ScenarioDerived | A developer runs Mailpit v1.29.0-1.30.5 locally in default configuration (no |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Cross-site WebSocket hijacking in Mailpit 1.29.0-1.30.5 exposes live email metadata to any website the developer visits, due to a percent-encoding bypass in the origin-check middleware. The origin guard inspects the raw RequestURI for an /api/ prefix, but Go's ServeMux routes on the percent-decoded path - so a request to /%61pi/events skips the guard and reaches the /api/events WebSocket handler, whose upgrader unconditionally accepts every origin. An attacker-controlled page can receive a live stream of message IDs, headers, subjects, and body snippets from a default, unauthenticated Mailpit instance; a working proof of concept is documented in GHSA-8r62-w5wh-fc5m, though no CISA KEV listing exists at time of analysis.
RemediationAI
Upgrade to Mailpit v1.30.6, which fixes the vulnerability by switching the origin middleware from r.RequestURI to r.URL.Path (the percent-decoded path) and injecting corsOriginAccessControl directly into websocket.Upgrader.CheckOrigin via the new SetCheckOriginFunc mechanism, so the check can no longer be bypassed by encoding. The fix commit is fbe5e006c3f1682b819df58b4a932d7a84920be9 and the release is at https://github.com/axllent/mailpit/releases/tag/v1.30.6. If an immediate upgrade is not feasible, enabling --ui-auth-file authentication is a confirmed compensating control that prevents exploitation entirely per the vendor advisory, at the cost of requiring credentials for all UI access. A secondary mitigation is ensuring Mailpit is not accessible from the browser while visiting untrusted sites - for example, stopping the service when not actively needed - though this requires developer discipline and is not a reliable control. Do not rely on browser CORS enforcement: WebSocket upgrade handshakes are not subject to Access-Control-Allow-Origin response-header checks once the 101 Switching Protocols response succeeds.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mailpit is a Go-based developer email testing tool (CPE cpe:2.3:a:axllent:mailpit:*:*:*:*:*:*:*:*, Go module github.com/axllent/mailpit) that accepts SMTP and exposes a web UI and WebSocket API for inspecting captured mail. CWE-177 (Improper Handling of URL Encoding) is the precise root cause: server/server.go gates the CORS origin check on strings.HasPrefix(r.RequestURI, "/api/"), reading the raw wire target, while net/http.ServeMux routes on the percent-decoded path. The string /%61pi/events does not begin with /api/, so the corsOriginAccessControl() call is skipped entirely. ServeMux then decodes %61 to a and dispatches to the /api/events WebSocket handler. The second half of the defect is in server/websockets/client.go, where websocket.Upgrader.CheckOrigin is hardcoded to return true, delegating to the origin check that was already bypassed. This is a regression: commit 6f1f4f3 (v1.28.2) fixed CVE-2026-22689 by removing CheckOrigin outright; commit a63bcd9 (v1.29.0) reintroduced it returning true and replaced the protection with the bypassable raw-prefix test.
Know when Mailpit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Network-initiated browser attack requires no authentication but mandates victim page visit (UI:R); high confidentiality from email stream disclosure; no integrity or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Mailpit versions up to 1.28.2 contains a vulnerability that allows attackers to intercept sensitive data such as email c
Mailpit versions 1.28.0 and earlier contain a server-side request forgery vulnerability in the /proxy endpoint that perm
Mailpit versions prior to 1.29.2 contain a Server-Side Request Forgery vulnerability in the Link Check API that allows u
Mailpit versions before 1.28.3 contain a server-side request forgery vulnerability in the HTML Check feature that allows
Header injection in Mailpit's SMTP server prior to version 1.28.3 allows unauthenticated remote attackers to inject or m
Memory exhaustion in Mailpit's SMTP server (versions 1.30.0 through 1.30.4) allows unauthenticated remote SMTP clients t
EUVD-2026-63668
GHSA-8r62-w5wh-fc5m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB