Skip to main content

mail-parser CVE-2026-129297

| EUVDEUVD-2026-126572 HIGH
Insufficient Verification of Data Authenticity (CWE-345)
2026-11-16 GitHub_M GHSA-72px-j8gh-p79x
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft spoofed Received headers with bracketed address literals
  2. Delivery
    Send email into target's parsing pipeline
  3. Exploit
    mail-parser ≤4.6.1 parses the message
  4. Execution
    get_server_ipaddress() returns the attacker-selected IP
  5. Impact
    Application 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mail-parser < 4.6.2

Affected Packages

pypi mail-parser fix: 4.6.2

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 19:02 EUVD
CVE Published
Nov 16, 2026 - 17:39 cve.org
HIGH 7.5

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

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch (upgrade to 4.6.2).

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche Python email-parsing library, limited production deployment footprint
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy