Skip to content
FlawDB
Sign in

CVE-2026-129299

MEDIUM 6.5EPSS 32%

mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input

Also known as GHSA-24mq-4vc6-2prf

Mitigation

  • Upgrade mail-parser to 4.6.2 or later.

Who should check

  • Projects that depend on PyPI package mail-parser (<= 4.6.1)
  • Anyone running SpamScope mail-parser < 4.6.2

Vulnerability facts

Affected
mail-parser <= 4.6.1
Fixed in
4.6.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.46% chance of exploitation in 30 days (percentile 32, 2026-11-28)
CWE
CWE-248, CWE-436
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI mail-parser<= 4.6.14.6.2ghsa
SpamScope mail-parser< 4.6.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-129299. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-129299.md
Affected: mail-parser <= 4.6.1
Fixed in: 4.6.2

Steps:
1. Search this machine and project for mail-parser (PyPI), SpamScope mail-parser: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-129299 being exploited?

There is no confirmed exploitation: CVE-2026-129299 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-28).

How serious is CVE-2026-129299?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-129299?

mail-parser <= 4.6.1.

Is there a fix for CVE-2026-129299?

Yes. Fixed in 4.6.2. Upgrade mail-parser to 4.6.2 or later.

How do I check if I'm affected by CVE-2026-129299?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-129301

mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch

PyPI packages
EPSS 32%
MEDIUM 5.3CVE-2026-129300

mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date

PyPI packages
EPSS 38%
HIGH 7.5CVE-2026-129297

mail-parser: Sender IP address spoofing in get_server_ipaddress()

PyPI packages
EPSS 9%
MEDIUM 6.5CVE-2026-129296

mail-parser: Path Traversal vulnerability in attachment extraction

PyPI packages
EPSS 51%
HIGH 7.5CVE-2026-129295

mail-parser is vulnerable to polynomial ReDoS in email header parsing

PyPI packages
EPSS 48%
Sponsors