{"id":"CVE-2026-129295","published":"2026-11-16T17:32:48Z","modified":"2026-11-17T22:27:37Z","title":"mail-parser is vulnerable to polynomial ReDoS in email header parsing","vendor":"SpamScope","product":"mail-parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00495,"percentile":0.43391,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SpamScope/mail-parser/pull/166","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/releases/tag/4.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.68},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"spamscope","affectedVersions":[{"vendor":"SpamScope","product":"mail-parser","versions":[">= 4.2.0, < 4.6.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-17T22:07:01.078292Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mail-parser","vulnerableRanges":[">=4.2.0, <4.6.1"],"patched":["4.6.1"],"from":["GHSA-r7w7-vpq8-c5vv"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-126570","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spamscope-mail-parser-cve-2026-129295","children":[{"from":"CVE-2026-129295","to":"CVE-2026-129297","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.1","toFixed":"4.6.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/const.py","src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"],"basis":"shared function","functions":["msgconvert"]}]},{"from":"CVE-2026-129295","to":"CVE-2026-129299","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.1","toFixed":"4.6.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/const.py","src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"],"basis":"shared function","functions":["msgconvert"]}]},{"from":"CVE-2026-129295","to":"CVE-2026-129300","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/exceptions.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"rarely changed file"}]},{"from":"CVE-2026-129295","to":"CVE-2026-129301","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/exceptions.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f","https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-129296","published":"2026-11-16","fixed":"4.6.0","kev":false,"link":{"from":"CVE-2026-129296","to":"CVE-2026-129295","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.0","toFixed":"4.6.1","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8","https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d"],"basis":"shared file"}]}},{"cve":"CVE-2026-129295","published":"2026-11-16","fixed":"4.6.1","kev":false},{"cve":"CVE-2026-129297","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129299","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129300","published":"2026-11-16","fixed":"4.6.3","kev":false}],"package":"PyPI:mail-parser"}}