CVE-2026-129297: mail-parser: Sender IP address spoofing in `get_server_ipaddress()

Published Nov 16, 2026
·
Updated

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, getserveripaddress() 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.

Affected Software

1 affected component
pypi/mail-parser<4.6.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mail-parser to a version that resolves this vulnerability.

    Fixed in 4.6.2

Event History

Nov 16, 2026
CVE Published
via MITRE·05:39 PM
Data Sourced
via MITRE·05:39 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to meaningful impact?

Applications using mail-parser versions earlier than 4.6.2 are affected if they rely on get_server_ipaddress() to identify, attribute, filter, or otherwise make decisions based on a message sender IP address.

2

What does an attacker need to exploit this issue?

An attacker needs to supply a message with attacker-controlled Received header content that includes address-like text, such as bracketed IPv4 or IPv6 addresses or HELO markers. No authentication or user interaction is indicated by the provided severity vector.

3

What should teams do if they use the returned sender IP for security decisions?

Upgrade mail-parser to version 4.6.2. Until then, do not treat the value returned by get_server_ipaddress() as a trustworthy sender identity when it can influence security, attribution, or filtering decisions.

4

How can teams determine whether they may be affected?

Check whether mail-parser is below version 4.6.2 and whether the application consumes get_server_ipaddress() output. Exposure is especially relevant where messages from untrusted sources can provide Received headers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203