# CVE-2026-129299: mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- 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.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-11-16T17:43:22.605Z
- Modified: 2026-11-16T22:30:03.917Z
- Also known as: GHSA-24mq-4vc6-2prf
- Weaknesses: CWE-248, CWE-436
- 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. Prior to 4.6.2, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2.

(As written by CVE List.)

## Affected

- SpamScope mail-parser: < 4.6.2
- mail-parser (PyPI): before 4.6.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf> (web)
- <https://github.com/SpamScope/mail-parser/pull/167> (web)
- <https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96> (web)
- <https://github.com/SpamScope/mail-parser/releases/tag/4.6.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129299> (advisory)
- <https://github.com/SpamScope/mail-parser> (package)

## Sources

- CVE List: [CVE-2026-129299](https://www.cve.org/CVERecord?id=CVE-2026-129299), CVE Terms of Use, modified 2026-11-16
- GitHub Advisory Database: [GHSA-24mq-4vc6-2prf](https://github.com/advisories/GHSA-24mq-4vc6-2prf), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-129299](https://nvd.nist.gov/vuln/detail/CVE-2026-129299), Public domain, modified 2026-11-16

---

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