zbateson/mail-mime-parser is vulnerable to Regular Expression Denial of Service (ReDoS)
75
CVE Score
High
Regular Expression Denial of Service (ReDoS)
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.
Upgrade the zbateson/mail-mime-parser and/or the mail-mime-parser library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and parse untrusted messages.
3.0.0 - 3.0.9
Fixed in 3.0.104.0.0 - 4.0.8
Fixed in 4.0.9zbateson/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.
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.