mail-parser: Sender IP address spoofing in get_server_ipaddress()
CVE-2026-129297
Patches Fixed in 4.6.2. Upgrade with pip install --upgrade mail-parser. Candidate addresses are now selected by position, not by appearance — a bracketed address the sender wrote is byte-identical to one the MTA wrote, so no amount of pattern matching can tell them apart: the first token of the from clause is the HELO name, whatever its shape, and is never a candidate; an explicit HELO marker inside a comment group is sender text and is excluded; a candidate must sit inside a ( / [ group; IPv4 and IPv6 matches are merged positionally, never family-first; the walk stops at the first trusted hop naming no address, rather than continuing into sender-written headers. The IPv6 pattern was corrected to skip the IPv6: tag and to prefer the longest valid form. Behaviour change. getserveripaddress() now returns None rather than an unreliable value in two cases that previously returned an address: a from clause consisting of a bare address with no HELO marker (indistinguishable from EHLO ), and a trusted hop naming no address at all. Callers must handle None. Workarounds None within mail-parser. Callers who cannot upgrade should not treat the return value of getserveripaddress() as…
Assessment
- CVSS
- 7.5 (v3.1)
- Severity
- High
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 16 November 2026
- Last updated
- 16 November 2026
- Affected
- mail-parser
- Weakness
- CWE-20, CWE-345
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
At the source
References
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x
- https://nvd.nist.gov/vuln/detail/CVE-2026-129297
- 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/advisories/GHSA-72px-j8gh-p79x
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-129297