Prior to 4.6.2, get_server_ipaddress() can select an attacker-controlled address from attacker-controlled Received headers.
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- 0.20%
- Published
- Nov 16, 2026
- In the news
- 1 story
What to do
A serious security flaw in Spamscope Mail-parser that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Spamscope Mail-parser
- < 4.6.2
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 products
Get alerts for these →Timeline 2
Latest change: mail-parser: mail-parser: Sender IP address spoofing in get_server_ipaddress() (Nov 16, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Nov 16, 2026
- Researchmail-parser: mail-parser: Sender IP address spoofing in get_server_ipaddress()GitHub Advisories · 22:11 UTC
- CVECVE-2026-129297 published (CVSS 7.5)CVE Program · 18:17 UTC
References 4
- github.com /SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96
- github.com /SpamScope/mail-parser/pull/167
- github.com /SpamScope/mail-parser/releases/tag/4.6.2
- github.com /SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x