eml-parser is vulnerable to Denial of Service (DoS)
53
Medium Risk
The headeremail2list() function in eml-parser extracts e-mail addresses from headers such as To, From, and Cc by parsing them with the Python standard library address parser. When a header carries an unquoted display name that ends in a bare period, such as Test.<test@example.com>, the standard library parser raises an exception that the library does not catch. The unhandled exception propagates out of the decoding routine and aborts parsing of the entire message, so a single crafted message can disrupt processing in pipelines that ingest untrusted e-mail. The fix wraps the address parsing in exception handling and falls back to regex-based extraction instead of letting the error propagate.
You are affected if you are using a version that falls within the vulnerable range and you parse untrusted e-mail whose address headers can contain an unquoted display name ending in a bare period.
eml-parser is vulnerable to Denial of Service (DoS) in versions 1.17.1 - 3.0.2.
Upgrade the eml-parser library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant