Intel

AIKIDO-2026-697151

zbateson/mail-mime-parser is vulnerable to Regular Expression Denial of Service (ReDoS)

GHSA-2fgf-m8q4-c4fmPublished 4 days ago
November 16, 2026

75

CVE Score

High

Regular Expression Denial of Service (ReDoS)

Are you affected? Scan for Free

TL;DR

The encoded-word decoder uses a regular expression whose optional language marker permits overlapping charset and language matches. A long malformed encoded-word value forces extensive backtracking and consumes CPU while parsing a message header. An application that parses untrusted mail can therefore experience prolonged processing from a single message. The fix requires the language marker when a language is present, removing the ambiguous match.

How do I fix this?

Upgrade the zbateson/mail-mime-parser and/or the mail-mime-parser 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 parse untrusted messages.

Versions

3.0.0 - 3.0.9

Fixed in 3.0.10

4.0.0 - 4.0.8

Fixed in 4.0.9

Background info

zbateson/mail-mime-parser is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 3.0.0 - 3.0.9 and 4.0.0 - 4.0.8.

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