postal-mime is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the postal-mime library to the patch version.
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.
1.0.8 - 2.7.5
Fixed in 2.7.6postal-mime is vulnerable to Denial of Service (DoS) in versions 1.0.8 - 2.7.5.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.