# CVE-2026-129295: mail-parser is vulnerable to polynomial ReDoS in email header parsing

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-11-16T17:32:48.332Z
- Modified: 2026-11-17T23:17:51.243Z
- Also known as: GHSA-r7w7-vpq8-c5vv
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- SpamScope mail-parser: >= 4.2.0, < 4.6.1
- mail-parser (PyPI): from 4.2.0 before 4.6.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv> (web)
- <https://github.com/SpamScope/mail-parser/pull/166> (web)
- <https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96> (web)
- <https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464> (web)
- <https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c> (web)
- <https://github.com/SpamScope/mail-parser/releases/tag/4.6.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129295> (advisory)
- <https://github.com/SpamScope/mail-parser> (package)

## Sources

- CVE List: [CVE-2026-129295](https://www.cve.org/CVERecord?id=CVE-2026-129295), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-r7w7-vpq8-c5vv](https://github.com/advisories/GHSA-r7w7-vpq8-c5vv), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-129295](https://nvd.nist.gov/vuln/detail/CVE-2026-129295), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-129295 · Whole record: https://cve.day/CVE-2026-129295.json · Rebuilt by cve.day 2026-11-25T22:59:50.906Z
