Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft spoofed Received headers with bracketed address literals
-
DeliverySend email into target's parsing pipeline
-
Exploitmail-parser ≤4.6.1 parses the message
-
Executionget_server_ipaddress() returns the attacker-selected IP
-
ImpactApplication misattributes sender for trust/blocklist decision
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires that the target application (a) parses attacker-supplied email with mail-parser ≤4.6.1 and (b) calls get_server_ipaddress() and trusts its returned value for sender attribution, IP blocklisting, or another trust decision. The attacker crafts sender-controlled Received-header text - bracketed IPv4 or IPv6 address literals, an explicit HELO marker inside a comment group, or a trusted hop that names no address - so the appearance-based selector treats sender-written text as an MTA-recorded address. No authentication, user interaction, or non-default library configuration is needed. The key limiting factor is downstream usage: the flaw has no security impact in applications that use mail-parser only for content/attachment extraction and never act on the returned IP. The only complete fix per the advisory is upgrading to 4.6.2 (which changes behaviour to return None in the two ambiguous cases); there is no in-library workaround, and callers who cannot upgrade should derive attribution from an authenticated signal (MTA logs, or SPF/DKIM/DMARC computed outside the library). |
| Impact | Signals are moderate and partly conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes an easily reachable, unauthenticated, remote condition - anyone who can get an email parsed can supply the malicious headers - which drives the 7.5 HIGH score. However, the impact is scoped entirely to integrity (C:N/I:H/A:N): this is a sender-attribution spoofing flaw (CWE-345/CWE-290), not code execution, data theft, or denial of service. No EPSS score, no CISA KEV listing, and no proof-of-concept or exploit reference are present in the input, so there is no public exploit identified at time of analysis; the vuln.today decision label is 'this_week' rather than act_now/emergency. The critical caveat the raw CVSS hides is conditionality: the 7.5 assumes the calling application trusts get_server_ipaddress() for a security decision. In applications that only extract email content, the flaw is inert. So this is a real-but-targeted priority for security/anti-abuse pipelines (spam filtering, forensic attribution, IP blocklisting) that rely on the returned IP, and a low real-world risk for everyone else - it is not a broad-impact 'patch tonight' emergency. Note the 'Information Disclosure' tag conflicts with the CVSS vector (C:N), which confirms no confidentiality impact. |
| Exploit ScenarioDerived | An attacker sends an email through a target's mail pipeline that uses mail-parser ≤4.6.1 and calls get_server_ipaddress() to attribute the sending IP. The attacker writes bracketed IPv4/IPv6 address literals or a HELO marker into sender-controlled Received-header text (or structures a trusted hop that names no address), so the library's appearance-based selector returns an attacker-chosen IP. A downstream reputation, blocklist, or forensic-attribution decision then trusts the forged address. No public exploit code is identified in the provided data; only the vendor advisory, PR, commit, and release are referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Sender IP address spoofing in SpamScope mail-parser through 4.6.1 allows unauthenticated remote attackers who control email headers to make get_server_ipaddress() return an attacker-chosen IP, misleading applications that use that value for sender attribution or blocklisting. The flaw is CWE-345 and is fixed in 4.6.2; exploitation requires the consuming application to parse attacker-supplied email and trust the returned address. No public exploit identified at time of analysis, and the vendor notes there is no in-library workaround.
RemediationAI
Upgrade to mail-parser 4.6.2 with pip install --upgrade mail-parser. The vendor states there is no in-library workaround; 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 such as the MTA's own logs or SPF/DKIM/DMARC results computed outside the library. The 4.6.2 release changes behaviour to return None rather than an unreliable address when a from clause is a bare address with no HELO marker or when a trusted hop names no address at all, so callers must handle None. See the advisory at https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x and the patch at https://github.com/SpamScope/mail-parser/pull/167.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mail-parser is a Python library that parses email messages, including Received headers, into structured objects. The affected function get_server_ipaddress() attempts to determine the sender's server IP by selecting candidate addresses from Received-header text, but it uses appearance-based heuristics that can mistake a bracketed IPv4 or IPv6 address literal written by the sender, or an explicit HELO marker inside a comment group, for an address recorded by a trusted mail transfer agent. It can also continue past a trusted hop that names no address and fall through to older, fully attacker-forged Received headers. This is an insufficient verification of authenticity issue (CWE-345), with related weaknesses in input validation and pattern matching. The CPE cpe:2.3:a:spamscope:mail-parser:*:*:*:*:*:*:*:* identifies the affected package; version 4.6.2 fixes the selection logic by choosing candidates by position rather than appearance and by returning None in ambiguous cases.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
An unauthenticated remote attacker supplies crafted email headers (AV:N/AC:L/PR:N/UI:N); impact is limited to spoofed attribution integrity (I:H) with no confidentiality or availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
CWE-345 (Insufficient Verification of Data Authenticity); the advisory also lists CWE-290 and CWE-185.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
SpamScope mail-parser, a library used for email parsing, contains a HIGH severity vulnerability (CVE-2026-129297) that allows unauthenticated attackers to spoof sender IP addresses by manipulating email headers. Organizations relying on this library for email authentication, blocklisting, or sender attribution could face incorrect security decisions, potentially enabling phishing or spam bypass. Leadership should prioritize patching to version 4.6.2 to maintain trust in email security controls.
Apply vendor patch (upgrade to 4.6.2).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-126572
GHSA-72px-j8gh-p79x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB