Read the docs

Sender IP spoofing in mail-parser get_server_ipaddress()

Priority LOW 36CWE-345Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.

Summary

mail-parser before 4.6.2 is affected. The get_server_ipaddress() function can select an address taken from attacker-written Received headers, which is insufficient verification of data authenticity (CWE-345). An unauthenticated remote attacker can send an email with crafted headers, so applications that rely on the returned value can attribute the message to an attacker-selected sender IP address.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed mail-parser (SpamScope): 4.6.2mail-parser (PyPI): 4.6.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
SpamScopemail-parserbefore 4.6.24.6.2Patch availableCNA
—mail-parser (PyPI)before 4.6.24.6.2Patch availableGHSA-72px-j8gh-p79x
  • mail-parser VendorSpamScope Affected before 4.6.2 Fixed in 4.6.2 Patch available CNA
  • mail-parser (PyPI) Vendor— Affected before 4.6.2 Fixed in 4.6.2 Patch available GHSA-72px-j8gh-p79x

Remediation

Upgrade mail-parser to version 4.6.2, the fixed version for both the SpamScope and PyPI mail-parser packages.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA mail-parser (SpamScope) Fixed in 4.6.2
  • Fix · GHSA-72px-j8gh-p79x mail-parser (PyPI) Fixed in 4.6.2 Advisory →

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-129297
  2. 2026-11-16 CISA SSVC decision points changed
  3. 2026-11-16 Alias added: GHSA-72px-j8gh-p79x
  4. 2026-11-16 Fix available: PyPI/[email protected] · GHSA-72px-j8gh-p79x
  5. 2026-11-16 CVSS score added · GHSA-72px-j8gh-p79x
  6. 2026-11-16 Weakness changed · GHSA-72px-j8gh-p79x
  7. 2026-11-16 6 new references · GHSA-72px-j8gh-p79x

References

  • TI-2026-92235 Polynomial ReDoS in mail-parser email header parsing CVSS 3.1HIGH 7.5
  • TI-2026-92240 Hostile attachment aborts attachment saving in mail-parser CVSS 3.1MEDIUM 6.5
  • TI-2026-92236 Path traversal in mail-parser lets attackers overwrite files CVSS 3.1MEDIUM 6.5
  • TI-2026-92239 Uncaught exceptions in mail-parser crash parsing on a crafted Received date CVSS 3.1MEDIUM 5.3
  • TI-2026-92238 Uncaught exceptions and silent header loss in mail-parser CVSS 3.1MEDIUM 6.5

Sources