Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted multipart email to parser
-
DeliveryInnermost lines share prefix with 250 open boundaries
-
ExploitBoundary loop scales O(depth × prefix) per line
-
ExecutionEvent loop blocked seconds per message
-
ImpactService-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.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
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-122665
GHSA-2h8j-5q45-j7q7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB