CVE-2026-129297
CVE-2026-129297 · mail-parser: Sender IP address spoofing in `get_server_ipaddress()
CVSS 7.5 · High · EPSS 0.2% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mail-parserNo fix published
- mail-parser PyPIUpdate to 4.6.2
Check the installed version:
pip show mail-parserAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: python
Affected products and versions
mail-parser
- Versions
- < 4.6.2: Affected
No fix published
mail-parser PyPI
- Versions
- 0.5.0
- 1.0.0
- 1.0.0rc1
- 1.1.0
- 1.1.1
- 1.1.10
All versions (69)
- 1.1.2
- 1.1.3
- 1.1.4
- 1.1.5
- 1.1.6
- 1.1.7
- 1.1.8
- 1.1.9
- 1.2.0
- 1.2.1
- 1.2.2
- 1.2.4
- 1.2.5
- 1.2.6
- 2.0.0
- 2.0.1
- 2.1.0
- 3.0.0
- 3.1.0
- 3.10.0
- 3.11.0
- 3.12.0
- 3.13.0
- 3.14.0
- 3.15.0
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.5.1
- 3.6.0
- 3.6.1
- 3.7.0
- 3.7.1
- 3.8.0
- 3.8.1
- 3.9.0
- 3.9.1
- 3.9.2
- 3.9.3
- 4.0.0
- 4.1.0
- 4.1.2
- 4.1.3
- 4.1.4
- 4.2.0
- 4.2.1
- 4.3.0
- 4.4.0
- 4.5.0
- 4.6.0
- 4.6.1
- Affected ranges
- ECOSYSTEM: < 4.6.2
Update to 4.6.2
Original sources
- 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://nvd.nist.gov/vuln/detail/CVE-2026-129297