Excessively Deep Nesting Affecting eml-parser package, versions [,3.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.52% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-EMLPARSER-20158946
  • published27 Sept 2026
  • disclosed25 Aug 2026
  • creditUnknown

Introduced: 25 Aug 2026

CVE-2026-55619  (opens in a new tab)
CWE-1124  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade eml-parser to version 3.0.2 or higher.

Overview

eml-parser is a Python EML parser library

Affected versions of this package are vulnerable to Excessively Deep Nesting in the parsing process of e-mail headers containing deeply nested parentheses. An attacker can cause the application to exhaust the call stack and terminate unexpectedly by submitting specially crafted e-mail headers with deeply nested CFWS constructs.

Workaround

This vulnerability can be mitigated by wrapping calls to decode_email or decode_email_bytes in a try/except construct to handle RecursionError exceptions.

CVSS Base Scores

version 4.0
version 3.1