Skip to main content

postal-mime CVE-2026-124016

| EUVDEUVD-2026-122665 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-10 disclosure@vulncheck.com GHSA-2h8j-5q45-j7q7
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted multipart email to parser
  2. Delivery
    Innermost lines share prefix with 250 open boundaries
  3. Exploit
    Boundary loop scales O(depth × prefix) per line
  4. Execution
    Event loop blocked seconds per message
  5. Impact
    Service-wide CPU exhaustion / denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Requires that the target service actually parses attacker-supplied (untrusted) email through postal-mime at a vulnerable version (<=4.2.0) via new PostalMime().parse(); the attack works against the DEFAULT configuration - it stays within the default maxNestingDepth of 256 and every other built-in limit, so no non-default setting is needed. The attacker must craft a message with deeply nested multiparts (PoC uses ~250) whose boundaries share a long common prefix, plus innermost body lines beginning with '--' that share that prefix but match no boundary. Limiting factors: exploitation requires the ability to deliver a message into a postal-mime parsing path and affects availability only (no data exposure); impact is a transient event-loop stall of seconds per message scaling with depth and size, with flat memory, so it degrades rather than permanently crashes the service, and a single message's effect ends when parsing completes.

Impact

This is a legitimate but moderate-priority issue, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms unauthenticated, low-complexity, remote reachability, but the only impact metric set is VA:L - availability-low, with no confidentiality or integrity impact (VC:N/VI:N) - which is why the score lands at 6.9 (Medium) rather than critical. The vuln.today priority of 'this_month' aligns with that: real and worth patching, but not drop-everything. No EPSS score and no CISA KEV entry were supplied, so there is no evidence of active exploitation; absence of these signals is not proof of safety but does argue against widespread automated attack at this time. Working against this moderation: a vendor GHSA advisory includes a detailed proof-of-concept with confirmed benchmark output (depth 250, 8 MB message, ~27-33x slowdown, ~4.2s per parse on Node v22), and the attack needs nothing but the ability to deliver an email to a service that parses untrusted mail - so for any internet-facing Node.js mail-processing service the practical reachability is high even though the per-event impact is bounded (event-loop stall for seconds, flat memory). Net: treat as a real availability risk for exposed mail-parsing services, but correctly rated Medium, not an event requiring emergency response.

Exploit ScenarioDerived

An attacker emails a service that parses incoming untrusted mail with postal-mime (e.g. a webhook, ticketing, or anti-abuse pipeline) a single message nested ~250 multipart levels deep whose boundaries share a long common prefix, with innermost body lines that begin with '--' and match that prefix but no boundary in full. Parsing forces an O(depth × shared-prefix-length) byte-compare scan, blocking the Node.js event loop for several seconds per message and starving all other requests on that process. A vendor-published PoC with confirmed timing exists, so no novel research is required to reproduce it.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Algorithmic complexity denial of service in postal-mime (all versions through 4.2.0) lets remote attackers stall the Node.js event loop for seconds by sending a crafted multipart email. Deeply nested parts (up to the default maxNestingDepth of 256) whose boundary lines share a long common prefix force processLine() to compare each '--'-prefixed body line against every open boundary, so per-line cost grows as O(depth x shared prefix length); the vendor's PoC at depth 250 against an 8 MB message measured roughly 4.2 s versus 152 ms for a control. A public PoC reference exists (vendor advisory script); it is not verified here as working exploit code, no CISA KEV entry or active exploitation is reported, and impact is availability only, degrading rather than crashing the parsing service. This is a legitimate but moderate-priority issue, not a top-tier emergency.

RemediationAI

Vendor-released patch: postal-mime 4.2.1 (released 2026-11-10), which replaces the per-boundary comparison loop with a boundary lookup (commit 3c3fd9e) and also fixes domain whitespace/comment parsing (commit 6467257); upgrade via npm and confirm the resolved dependency tree, since postal-mime is often a transitive dependency. Because the fix affects the address parser shared with nodemailer, review any logic that displays or makes decisions on from.address after upgrading - inputs such as ceo@victim.example .other.example now yield the longer domain, and addresses with control characters return an empty address instead. Release notes: https://github.com/postalsys/postal-mime/releases/tag/v4.2.1; advisory: https://github.com/postalsys/postal-mime/security/advisories/GHSA-q8wm-54mj-r36p. If upgrading is delayed, note that lowering maxNestingDepth reduces but does not eliminate the depth multiplier, and the cost is driven by depth times message size, so capping accepted message size and parsing large or suspicious mail out of the latency-critical event loop (worker threads or a separate process) limits blast radius - at the cost of extra infrastructure and parsing latency.

Affected VersionsENISA

postal-mime 0 <4.2.1

Affected Packages

euvd postal_mime fix: 4.2.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

postal-mime is a JavaScript MIME/email parser used by Node.js services - including nodemailer and mail-handling backends - to turn raw RFC 5322 messages into structured objects. Multipart MIME bodies are delimited by boundary strings (''--'' followed by the boundary token), and nested multiparts mean multiple boundaries are open simultaneously. In src/postal-mime.ts, PostalMime.processLine() handled every body line beginning with two hyphens by walking the stack of currently open boundaries and doing an unindexed byte-by-byte comparison against each, with only a length check as a short-circuit. Because a line sharing a long prefix with all open boundaries but matching none in full forces a full comparison against every entry, per-line cost becomes O(depth x shared prefix length) - the CWE-407 algorithmic complexity class - yielding overall O(depth x size) parse cost while memory stays flat. The 4.2.1 fix (commit 3c3fd9e) looks the boundary line up among open boundaries instead of comparing it with each one in turn, removing the depth multiplier; the same release (commit 6467257) also corrects address parsing so whitespace or a comment beside a dot in a domain is treated as RFC 5322 folding whitespace (e.g. ceo@victim.example .other.example now parses as ceo@victim.example.other.example), and addresses containing control characters now return an empty address. The vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N with VC:N/VI:N/VA:L confirms unauthenticated network reachability and availability-only impact.

Know when Node.js 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

Vendor (vulncheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Remote unauthenticated delivery of a crafted email with no user interaction (AV:N/AC:L/PR:N/UI:N); availability-only transient CPU/event-loop impact gives A:L with C:N/I:N and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 10, 2026 - 20:35 EUVD

DescriptionCVE.org

postal-mime before 4.2.1 contains an algorithmic complexity denial of service vulnerability that allows unauthenticated remote attackers to cause excessive CPU consumption in the PostalMime.processLine() function by crafting deeply nested multipart email messages with boundary lines sharing long prefixes with open boundaries. Attackers can deliver a malicious email with nesting up to the default maxNestingDepth of 256, causing per-line parsing cost to scale as O(depth x shared prefix length) and blocking the Node.js event loop for seconds per message.

Threat Intelligence Overview

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Medium
popular Node.js email-parsing npm library, common but not ubiquitous
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy