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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-16T17:39:47.311Z
- Modified: 2026-11-16T22:15:05.618Z
- Also known as: GHSA-72px-j8gh-p79x
- Weaknesses: CWE-20, CWE-345
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- SpamScope mail-parser: < 4.6.2
- mail-parser (PyPI): before 4.6.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x> (web)
- <https://github.com/SpamScope/mail-parser/pull/167> (web)
- <https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96> (web)
- <https://github.com/SpamScope/mail-parser/releases/tag/4.6.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129297> (advisory)
- <https://github.com/SpamScope/mail-parser> (package)

## Sources

- CVE List: [CVE-2026-129297](https://www.cve.org/CVERecord?id=CVE-2026-129297), CVE Terms of Use, modified 2026-11-16
- GitHub Advisory Database: [GHSA-72px-j8gh-p79x](https://github.com/advisories/GHSA-72px-j8gh-p79x), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-129297](https://nvd.nist.gov/vuln/detail/CVE-2026-129297), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-129297 · Whole record: https://cve.day/CVE-2026-129297.json · Rebuilt by cve.day 2026-11-25T22:59:50.907Z
