{"answers":{"affected":"1 open source package ship an affected version, including mail-parser.","exploited":"There is no known exploitation of CVE-2026-129301 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls write_attachments(), _safe_attachment_filename() or write_sample(). Many projects that include it are not exposed.","fix":"Upgrade mail-parser to 4.6.3 or later.","what":"CVE-2026-129301 is a medium-severity denial of service vulnerability in SpamScope mail-parser, published on 16 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-129301 and fix it if it is affected.\n\nWhat it is: CVE-2026-129301 is a medium-severity denial of service vulnerability in SpamScope mail-parser, published on 16 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-129301 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls write_attachments(), _safe_attachment_filename() or write_sample(). Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- mail-parser (PyPI): affected from 4.6.0; fixed in 4.6.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to write_attachments(), _safe_attachment_filename() or write_sample() and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-129301/ (Markdown: https://insights.sbomify.com/CVE-2026-129301/index.md)","id":"CVE-2026-129301","markdown":"https://insights.sbomify.com/CVE-2026-129301/index.md","name":"CVE-2026-129301","record":{"aliases":["GHSA-8cgq-x343-p74c"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python email parser","requires_auth":"none","requires_specific_call":true,"summary":"Crafted email attachments can abort mail-parser's attachment save, leaving malicious content undetected for downstream scanners.","user_interaction":"not_required","vuln_class":"denial_of_service","vulnerable_functions":["write_attachments()","_safe_attachment_filename()","write_sample()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"},{"id":"CWE-248","name":"Uncaught Exception"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch","id":"CVE-2026-129301","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":5,"n_vendor_status":1,"next":{"headline":"Guard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single request","id":"CVE-2026-129302"},"nickname":null,"packages":[{"ecosystem":"PyPI","fixed":["4.6.3"],"introduced":["4.6.0"],"last_affected":[],"name_kind":null,"package":"mail-parser","purl":"pkg:pypi/mail-parser","purl_source":"derived","scope":"upstream","source":"GHSA-8cgq-x343-p74c"}],"prev":{"headline":"mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date","id":"CVE-2026-129300"},"products":["mail-parser"],"published":"2026-11-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-11-16","vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"fixed":["4.6.3"],"introduced":["4.6.0"],"name":"mail-parser","purl":"pkg:pypi/mail-parser","sources":["GHSA-8cgq-x343-p74c"],"status":"fixed"}],"release":null,"scope":"upstream","status":"fixed","statuses":{"fixed":1},"vendor":null}],"vendors":["SpamScope"]},"summary":"Crafted email attachments can abort mail-parser's attachment save, leaving malicious content undetected for downstream scanners.","url":"https://insights.sbomify.com/CVE-2026-129301/"}