Intel

AIKIDO-2026-297362

postal-mime is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 10, 2026
August 10, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

postal-mime parses inline message/rfc822 parts by creating a new parser instance for each nesting level, and every level retains the whole nested message. No recursion limit applies to these sub-parsers, so a small email with deeply nested message/rfc822 parts drives unbounded memory growth and can crash the parsing process with an out-of-memory error. The fix caps the recursion depth and emits parts past the limit as ordinary attachments, and it also validates the parser resource-limit options. This bounds memory use when parsing untrusted messages.

How do I fix this?

Upgrade the postal-mime library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse untrusted email messages that may contain nested inline message/rfc822 parts.

Versions

1.0.8 - 2.7.5

Fixed in 2.7.6

Background info

postal-mime is vulnerable to Denial of Service (DoS) in versions 1.0.8 - 2.7.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea