Skip to main content
EPSS 0.2%top 89%

CVE-2026-67448: CWE-177: Improper Handling of URL Encoding (Hex Encoding) in axllent mailpit

0
Medium
Published: 08/20/2026 (08/20/2026, 21:34:58 UTC)
Source: CVE Database V5
Vendor/Project: axllent
Product: mailpit

Description

CVE-2026-67448 is a vulnerability in axllent mailpit versions 1.29.0 through 1.30.5 involving improper handling of URL encoding in WebSocket origin checks. The origin check relies on the raw request URI prefix, but Go's ServeMux routes on the percent-decoded path, allowing an attacker to bypass origin validation by encoding the path. This leads to unauthorized WebSocket connections that can leak sensitive email data. The issue arises because the upgrader accepts all origins and the middleware origin check is bypassed due to inconsistent handling of encoded URLs.

CVSS v3.1

Score 6.5medium

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

Affected software

axllent

mailpit

Affected versions
>=1.29.0 <1.30.6
GitHub Actionsmore threats →ai
axllent/mailpit
pkg:github/axllent/mailpit
Affected versions
>=1.29.0 <1.30.6

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: 09/11/2026, 03:48:19 UTC

Technical Analysis

The vulnerability in mailpit stems from a mismatch between the origin check and the routing logic. The origin check is performed on the raw, percent-encoded request URI, while the Go ServeMux router matches on the decoded path. An attacker can craft a request with a percent-encoded path (e.g., /%61pi/events) that bypasses the origin check but is routed to the WebSocket handler. Since the upgrader's CheckOrigin function unconditionally returns true, the WebSocket connection is established without proper origin validation. This allows cross-origin WebSocket hijacking, exposing sensitive email information such as message IDs, sender and recipient addresses, subjects, and body snippets. The vulnerability affects mailpit versions from 1.29.0 up to but not including 1.30.6. The issue was introduced when a previous fix removed CheckOrigin and replaced it with a raw URI prefix check that is bypassable due to URL decoding behavior.

Potential Impact

An attacker controlling a malicious website visited by a user running an unauthenticated mailpit instance can establish unauthorized WebSocket connections. This leads to leakage of sensitive email data including IDs, sender and recipient information, subjects, and message snippets. The vulnerability does not require credentials or mail sending capabilities, only that mailpit is running without UI authentication. WebSocket connections bypass CORS protections once established, making the origin check critical. This vulnerability can result in significant confidentiality loss of email content.

Mitigation Recommendations

No official patch information is provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix is to perform origin checks on the decoded URL path (r.URL.Path) rather than the raw request URI, ensuring the origin check aligns with routing. Additionally, restoring a proper CheckOrigin function in the WebSocket upgrader to enforce origin validation independently is recommended. Enabling UI authentication (--ui-auth-file) prevents this bypass by requiring authentication. Until a patch is available, users should enable UI authentication to mitigate risk.

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-07-29T15:07:24.992Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a877790acd9273b492c5fcb

Added to database: 08/20/2026, 21:54:24 UTC

Last enriched: 09/11/2026, 03:48:19 UTC

Last updated: 10/05/2026, 06:48:18 UTC

Views: 71

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