CVE-2026-129299: mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input
Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-24mq-4vc6-2prf
Summary
The mail-parser library is vulnerable to uncaught exceptions and silent message content loss when processing maliciously crafted email headers. All users of mail-parser versions prior to 4.6.2 should upgrade immediately to prevent application crashes and data evasion.
Who is affected
The vulnerability stems from improper handling of header names and non-ASCII content, allowing attackers to trigger JSON serialization errors or bypass security filters by causing headers to vanish or be overwritten. These flaws can lead to denial-of-service via worker crashes or security evasion by preventing downstream systems from inspecting sensitive email fields like spam flags or C2 indicators.
Exploitability
The vulnerability is rated as Medium severity with a CVSS score of 6.5, indicating it can be exploited remotely by an unauthenticated attacker without user interaction. While the EPSS score of 0.004 suggests low current prevalence of exploitation, the issue is confirmed to affect common parsing patterns and is not currently listed in the CISA KEV catalog.
Remediation
- Upgrade the mail-parser package to version 4.6.2 or higher using 'pip install --upgrade mail-parser'.
- For environments unable to upgrade, wrap JSON and header property access in a broad 'except Exception' block to mitigate denial-of-service from uncaught exceptions.
How to check your project
- Check the installed version of mail-parser by running 'pip show mail-parser'.
- Audit dependency manifest files such as requirements.txt, pyproject.toml, or poetry.lock for mail-parser versions below 4.6.2.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | mail-parser |
>= 0, < 4.6.2 | 4.6.2 | python -m pip install 'mail-parser>=4.6.2' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | Low |
FAQ
Does this vulnerability allow remote code execution?
No, the vulnerability leads to application crashes (denial-of-service) or data integrity issues (security evasion), but there is no mention of remote code execution.
Will upgrading to 4.6.2 break existing code?
Yes, there are documented behavior changes: header names are now preserved exactly as sent, and X_raw access now consistently returns a JSON array, which may affect downstream consumers expecting different types.
Is this vulnerability actively exploited in the wild?
There is no evidence of active exploitation currently listed in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- WEB https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-129299
- WEB https://github.com/SpamScope/mail-parser/pull/167
- WEB https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96
- PACKAGE https://github.com/SpamScope/mail-parser
- WEB https://github.com/SpamScope/mail-parser/releases/tag/4.6.2
Source records: GHSA-24mq-4vc6-2prf (OSV.dev) · EPSS by FIRST, 2026-11-26.