# CVE-2026-129296: mail-parser: Path Traversal vulnerability in attachment extraction

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-02)
- Published: 2026-11-16T17:36:06.814Z
- Modified: 2026-11-18T16:18:10.647Z
- Also known as: GHSA-fr3h-cpq2-9496
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. 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.

(As written by CVE List.)

## Affected

- SpamScope mail-parser: >= 3.8.0, < 4.6.0
- mail-parser (PyPI): from 3.8.0 before 4.6.0

## Every score

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

## References

- <https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496> (web)
- <https://github.com/SpamScope/mail-parser/pull/165> (web)
- <https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8> (web)
- <https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d> (web)
- <https://github.com/SpamScope/mail-parser/releases/tag/4.6.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129296> (advisory)
- <https://github.com/SpamScope/mail-parser> (package)

## Sources

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

---

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