CVE-2026-129297
mail-parser is a tool that parses emails by enhancing the Python …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- 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
- nvd.nist.gov/vuln/detail/CVE-2026-129297
- github.com/advisories/GHSA-72px-j8gh-p79x
- nvd.nist.gov/vuln/detail/CVE-2026-129297
- cve.org/CVERecord?id=CVE-2026-129297
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.