Skip to content
FlawDB
Sign in

CVE-2026-129297

HIGH 7.5EPSS 9%

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

Also known as GHSA-72px-j8gh-p79x

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
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen 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: High
  • Availability impact: None
EPSS
0.24% chance of exploitation in 30 days (percentile 9, 2026-11-28)
CWE
CWE-345
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, get_server_ipaddress() can select an attacker-controlled address from attacker-controlled Received headers. The minimum mechanism needed to distinguish this spoofing issue, derived from the advisory's remediation analysis and verified fix evidence, is appearance-based candidate selection that can treat bracketed IPv4 or IPv6 addresses or HELO markers in sender-written text as MTA-recorded addresses and can continue past a trusted hop that names no address. Applications that rely on the returned value can attribute a message to an attacker-selected sender IP address. 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-129297. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-129297.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-129297 being exploited?

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

How serious is CVE-2026-129297?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-129297?

mail-parser <= 4.6.1.

Is there a fix for CVE-2026-129297?

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-129297?

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%
MEDIUM 6.5CVE-2026-129299

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

PyPI packages
EPSS 32%
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