SecurityContext

CVE-2026-129295: mail-parser - Regular Expression Denial of Service

  • Cve: CVE-2026-129295
  • Name: mail-parser - Regular Expression Denial of Service
  • Description: mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.
  • Impact: Attackers can cause denial of service by keeping email parsing workers busy for extended periods with a small crafted message.
  • Remediation: Upgrade to version 4.6.1 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: securitycontext
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00495
  • Epss percentile: 0.43332
  • Assignee: [email protected]
  • Published at: 2026-11-16T18:17:30Z
  • Age in days: 8
  • Modified at: 2026-11-17T23:17:51Z
  • References total: 6
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-129295
  • Nvd status: received
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96
https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464
https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c
https://github.com/SpamScope/mail-parser/pull/166
https://github.com/SpamScope/mail-parser/releases/tag/4.6.1
https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv

Projects

RepositoryLink kindsIndexedUrl
SpamScope/mail-parsercommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/SpamScope/mail-parser

Index

  • Repositories: 3
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts