{"id":"CVE-2026-129297","published":"2026-11-16T17:39:47Z","modified":"2026-11-16T17:54:38Z","title":"mail-parser: Sender IP address spoofing in `get_server_ipaddress()","vendor":"SpamScope","product":"mail-parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00202,"percentile":0.10302,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SpamScope/mail-parser/pull/167","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/releases/tag/4.6.2","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":2.06},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"spamscope","affectedVersions":[{"vendor":"SpamScope","product":"mail-parser","versions":["< 4.6.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-16T17:54:23.374832Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mail-parser","vulnerableRanges":["<4.6.2"],"patched":["4.6.2"],"from":["GHSA-72px-j8gh-p79x"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-126572","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spamscope-mail-parser-cve-2026-129295","parents":[{"from":"CVE-2026-129295","to":"CVE-2026-129297","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.1","toFixed":"4.6.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/const.py","src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"],"basis":"shared function","functions":["msgconvert"]}]},{"from":"CVE-2026-129296","to":"CVE-2026-129297","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8","https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d","https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"],"basis":"shared function","functions":["parse"]}]}],"children":[{"from":"CVE-2026-129297","to":"CVE-2026-129300","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.2","toFixed":"4.6.3","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"shared function","functions":["parse"]}]},{"from":"CVE-2026-129297","to":"CVE-2026-129301","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.2","toFixed":"4.6.3","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f","https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba"],"basis":"shared function","functions":["parse"]}]}],"packageHistory":[{"cve":"CVE-2026-129296","published":"2026-11-16","fixed":"4.6.0","kev":false},{"cve":"CVE-2026-129295","published":"2026-11-16","fixed":"4.6.1","kev":false},{"cve":"CVE-2026-129297","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129299","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129300","published":"2026-11-16","fixed":"4.6.3","kev":false},{"cve":"CVE-2026-129301","published":"2026-11-16","fixed":"4.6.3","kev":false}],"package":"PyPI:mail-parser"}}