CVE-2026-129297
High 7.5No known exploitationFix availablemail-parser: Sender IP address spoofing in `get_server_ipaddress()
Vendor advisory: GHSA-72px-j8gh-p79x
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 10% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-345
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| SpamScope | mail-parser | < 4.6.2 | Not documented | CVE Program |
| pip | mail-parser | all versions up to and including 4.6.1 | 4.6.2 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96 (opens in a new tab)x_refsource_misc
- https://github.com/SpamScope/mail-parser/pull/167 (opens in a new tab)x_refsource_misc
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.2 (opens in a new tab)x_refsource_misc
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x (opens in a new tab)x_refsource_confirm
- GitHub Advisory GHSA-72px-j8gh-p79x (opens in a new tab)github-advisory