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.** `get_server_ipaddress()` 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 <that address>`), 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 `get_server_ipaddress()` as trustworthy, and should derive sender attribution from an authenticated signal instead — the MTA's own logs, or SPF/DKIM/DMARC results computed outside this library.
Properties
- Summary
- mail-parser: Sender IP address spoofing in get_server_ipaddress()
- Severity
- high
- Nvd fetched at
- 2026-11-16T22:44:16.771339+00:00
- Cvss score
- 7.5
- Cvss severity
- HIGH
- Retrieved at
- 2026-11-16T22:45:19+00:00
- Ghsa published
- 2026-11-16T22:11:54Z
- Source url
- https://github.com/advisories/GHSA-72px-j8gh-p79x
- Ghsa updated
- 2026-11-16T22:11:55Z
- Ghsa id
- GHSA-72px-j8gh-p79x
- Last source
- GitHub Advisory Database
- Score
- 7.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-129297
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- First seen by Signal
- 2026-11-16T18:35:21+00:00
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Published at
- 2026-11-16T18:17:30.590
- Last modified
- 2026-11-16T18:17:30.590
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph