Search
Find a vulnerability
Search criteria
12 vulnerabilities found for mail-parser by SpamScope
CVE-2026-129301 (GCVE-0-2026-129301)
Vulnerability from nvd – Published: 2026-11-16 17:47 – Updated: 2026-11-16 17:47
VLAI
EPSS
VEX
Title
mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3.
Severity
6.5 (Medium)
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/171 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/1… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/e… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 4.6.0, < 4.6.3
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 4.6.0, \u003c 4.6.3"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-436",
"description": "CWE-436: Interpretation Conflict",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:47:32.676Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/171"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3"
}
],
"source": {
"advisory": "GHSA-8cgq-x343-p74c",
"discovery": "UNKNOWN"
},
"title": "mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129301",
"datePublished": "2026-11-16T17:47:32.676Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:47:32.676Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129300 (GCVE-0-2026-129300)
Vulnerability from nvd – Published: 2026-11-16 17:45 – Updated: 2026-11-16 17:45
VLAI
EPSS
VEX
Title
mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3.
Severity
5.3 (Medium)
CWE
- CWE-248 - Uncaught Exception
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/171 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/d… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/e… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 3.7.0, < 4.6.3
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 3.7.0, \u003c 4.6.3"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:45:18.252Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/171"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3"
}
],
"source": {
"advisory": "GHSA-xhrq-2mqv-q8wx",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129300",
"datePublished": "2026-11-16T17:45:18.252Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:45:18.252Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129299 (GCVE-0-2026-129299)
Vulnerability from nvd – Published: 2026-11-16 17:43 – Updated: 2026-11-16 18:58
VLAI
EPSS
VEX
Title
mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input
Summary
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, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2.
Severity
6.5 (Medium)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-16 18:58 UTC
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/167 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/c… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
< 4.6.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129299",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-16T18:58:02.026596Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T18:58:11.105Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003c 4.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-436",
"description": "CWE-436: Interpretation Conflict",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:43:22.605Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/167",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/167"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2"
}
],
"source": {
"advisory": "GHSA-24mq-4vc6-2prf",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129299",
"datePublished": "2026-11-16T17:43:22.605Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T18:58:11.105Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129297 (GCVE-0-2026-129297)
Vulnerability from nvd – Published: 2026-11-16 17:39 – Updated: 2026-11-16 17:54
VLAI
EPSS
VEX
Title
mail-parser: Sender IP address spoofing in `get_server_ipaddress()
Summary
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.
Severity
7.5 (High)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-16 17:54 UTC
CWE
- CWE-345 - Insufficient Verification of Data Authenticity
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/167 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/c… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
< 4.6.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129297",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-16T17:54:23.374832Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:54:38.586Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003c 4.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-345",
"description": "CWE-345: Insufficient Verification of Data Authenticity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:39:47.311Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/167",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/167"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2"
}
],
"source": {
"advisory": "GHSA-72px-j8gh-p79x",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Sender IP address spoofing in `get_server_ipaddress()"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129297",
"datePublished": "2026-11-16T17:39:47.311Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:54:38.586Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129296 (GCVE-0-2026-129296)
Vulnerability from nvd – Published: 2026-11-16 17:36 – Updated: 2026-11-16 17:36
VLAI
EPSS
VEX
Title
mail-parser: Path Traversal vulnerability in attachment extraction
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0.
Severity
6.5 (Medium)
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/165 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/3… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/b… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 3.8.0, < 4.6.0
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 3.8.0, \u003c 4.6.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:36:06.814Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/165",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/165"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.0"
}
],
"source": {
"advisory": "GHSA-fr3h-cpq2-9496",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Path Traversal vulnerability in attachment extraction"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129296",
"datePublished": "2026-11-16T17:36:06.814Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:36:06.814Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129295 (GCVE-0-2026-129295)
Vulnerability from nvd – Published: 2026-11-16 17:32 – Updated: 2026-11-16 17:32
VLAI
EPSS
VEX
Title
mail-parser is vulnerable to polynomial ReDoS in email header parsing
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.
Severity
7.5 (High)
CWE
- CWE-1333 - Inefficient Regular Expression Complexity
Assigner
References
6 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/166 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/0… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/5… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/8… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 4.2.0, < 4.6.1
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 4.2.0, \u003c 4.6.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:32:48.332Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/166",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/166"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.1"
}
],
"source": {
"advisory": "GHSA-r7w7-vpq8-c5vv",
"discovery": "UNKNOWN"
},
"title": "mail-parser is vulnerable to polynomial ReDoS in email header parsing"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129295",
"datePublished": "2026-11-16T17:32:48.332Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:32:48.332Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129301 (GCVE-0-2026-129301)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:47 – Updated: 2026-11-16 17:47
VLAI
EPSS
VEX
Title
mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3.
Severity
6.5 (Medium)
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/171 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/1… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/e… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 4.6.0, < 4.6.3
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 4.6.0, \u003c 4.6.3"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-436",
"description": "CWE-436: Interpretation Conflict",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:47:32.676Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/171"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3"
}
],
"source": {
"advisory": "GHSA-8cgq-x343-p74c",
"discovery": "UNKNOWN"
},
"title": "mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129301",
"datePublished": "2026-11-16T17:47:32.676Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:47:32.676Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129300 (GCVE-0-2026-129300)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:45 – Updated: 2026-11-16 17:45
VLAI
EPSS
VEX
Title
mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3.
Severity
5.3 (Medium)
CWE
- CWE-248 - Uncaught Exception
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/171 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/d… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/e… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 3.7.0, < 4.6.3
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 3.7.0, \u003c 4.6.3"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:45:18.252Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/171"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3"
}
],
"source": {
"advisory": "GHSA-xhrq-2mqv-q8wx",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129300",
"datePublished": "2026-11-16T17:45:18.252Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:45:18.252Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129299 (GCVE-0-2026-129299)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:43 – Updated: 2026-11-16 18:58
VLAI
EPSS
VEX
Title
mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input
Summary
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, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2.
Severity
6.5 (Medium)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-16 18:58 UTC
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/167 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/c… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
< 4.6.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129299",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-16T18:58:02.026596Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T18:58:11.105Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003c 4.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248: Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-436",
"description": "CWE-436: Interpretation Conflict",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:43:22.605Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/167",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/167"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2"
}
],
"source": {
"advisory": "GHSA-24mq-4vc6-2prf",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129299",
"datePublished": "2026-11-16T17:43:22.605Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T18:58:11.105Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129297 (GCVE-0-2026-129297)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:39 – Updated: 2026-11-16 17:54
VLAI
EPSS
VEX
Title
mail-parser: Sender IP address spoofing in `get_server_ipaddress()
Summary
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.
Severity
7.5 (High)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-16 17:54 UTC
CWE
- CWE-345 - Insufficient Verification of Data Authenticity
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/167 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/c… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
< 4.6.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129297",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-16T17:54:23.374832Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:54:38.586Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003c 4.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-345",
"description": "CWE-345: Insufficient Verification of Data Authenticity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:39:47.311Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-72px-j8gh-p79x"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/167",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/167"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.2"
}
],
"source": {
"advisory": "GHSA-72px-j8gh-p79x",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Sender IP address spoofing in `get_server_ipaddress()"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129297",
"datePublished": "2026-11-16T17:39:47.311Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:54:38.586Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129296 (GCVE-0-2026-129296)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:36 – Updated: 2026-11-16 17:36
VLAI
EPSS
VEX
Title
mail-parser: Path Traversal vulnerability in attachment extraction
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0.
Severity
6.5 (Medium)
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/165 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/3… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/b… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 3.8.0, < 4.6.0
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 3.8.0, \u003c 4.6.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:36:06.814Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/165",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/165"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.0"
}
],
"source": {
"advisory": "GHSA-fr3h-cpq2-9496",
"discovery": "UNKNOWN"
},
"title": "mail-parser: Path Traversal vulnerability in attachment extraction"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129296",
"datePublished": "2026-11-16T17:36:06.814Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:36:06.814Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129295 (GCVE-0-2026-129295)
Vulnerability from cvelistv5 – Published: 2026-11-16 17:32 – Updated: 2026-11-16 17:32
VLAI
EPSS
VEX
Title
mail-parser is vulnerable to polynomial ReDoS in email header parsing
Summary
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.
Severity
7.5 (High)
CWE
- CWE-1333 - Inefficient Regular Expression Complexity
Assigner
References
6 references
| URL | Tags |
|---|---|
| https://github.com/SpamScope/mail-parser/security… | x_refsource_CONFIRM |
| https://github.com/SpamScope/mail-parser/pull/166 | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/0… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/5… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/commit/8… | x_refsource_MISC |
| https://github.com/SpamScope/mail-parser/releases… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| SpamScope | mail-parser |
Affected:
>= 4.2.0, < 4.6.1
|
{
"containers": {
"cna": {
"affected": [
{
"product": "mail-parser",
"vendor": "SpamScope",
"versions": [
{
"status": "affected",
"version": "\u003e= 4.2.0, \u003c 4.6.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T17:32:48.332Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv"
},
{
"name": "https://github.com/SpamScope/mail-parser/pull/166",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/pull/166"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464"
},
{
"name": "https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c"
},
{
"name": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/SpamScope/mail-parser/releases/tag/4.6.1"
}
],
"source": {
"advisory": "GHSA-r7w7-vpq8-c5vv",
"discovery": "UNKNOWN"
},
"title": "mail-parser is vulnerable to polynomial ReDoS in email header parsing"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-129295",
"datePublished": "2026-11-16T17:32:48.332Z",
"dateReserved": "2026-11-13T22:30:18.284Z",
"dateUpdated": "2026-11-16T17:32:48.332Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}