Sender IP spoofing in mail-parser get_server_ipaddress()
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SpamScope | mail-parser | before 4.6.2 | 4.6.2 | Patch available | CNA |
| — | mail-parser (PyPI) | before 4.6.2 | 4.6.2 | Patch available | GHSA-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
- 2026-11-16 Threatist record created from CVE-2026-129297
- 2026-11-16 CISA SSVC decision points changed
- 2026-11-16 Alias added: GHSA-72px-j8gh-p79x
- 2026-11-16 Fix available: PyPI/[email protected] · GHSA-72px-j8gh-p79x
- 2026-11-16 CVSS score added · GHSA-72px-j8gh-p79x
- 2026-11-16 Weakness changed · GHSA-72px-j8gh-p79x
- 2026-11-16 6 new references · GHSA-72px-j8gh-p79x
References
Other 5
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x
- https://github.com/SpamScope/mail-parser/pull/167
- https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.2
- https://github.com/SpamScope/mail-parser
More SpamScope vulnerabilities
- 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
- CVE-2026-129297 · CVE Program
- CVE-2026-129297 · NVD
- GHSA-72px-j8gh-p79x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences