{"answers":{"affected":"1 open source package ship an affected version, including mail-parser.","exploited":"There is no known exploitation of CVE-2026-129299 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls parse_from_bytes, X_raw or json.dumps. Many projects that include it are not exposed.","fix":"Upgrade mail-parser to 4.6.2 or later.","what":"CVE-2026-129299 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-129299 and fix it if it is affected.\n\nWhat it is: CVE-2026-129299 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-129299 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls parse_from_bytes, X_raw or json.dumps. Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- mail-parser (PyPI): affected all versions; fixed in 4.6.2\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 parse_from_bytes, X_raw or json.dumps 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-129299/ (Markdown: https://insights.sbomify.com/CVE-2026-129299/index.md)","id":"CVE-2026-129299","markdown":"https://insights.sbomify.com/CVE-2026-129299/index.md","name":"CVE-2026-129299","record":{"aliases":["GHSA-24mq-4vc6-2prf"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python email parser","requires_auth":"none","requires_specific_call":true,"summary":"Attacker-controlled email headers can crash mail-parser or hide malicious content from downstream scanners; apps parsing untrusted mail should care.","user_interaction":"not_required","vuln_class":"denial_of_service","vulnerable_functions":["parse_from_bytes","X_raw","json.dumps"]},"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. 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.","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: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input","id":"CVE-2026-129299","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":4,"n_vendor_status":1,"next":{"headline":"mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date","id":"CVE-2026-129300"},"nickname":null,"packages":[{"ecosystem":"PyPI","fixed":["4.6.2"],"introduced":["0"],"last_affected":[],"name_kind":null,"package":"mail-parser","purl":"pkg:pypi/mail-parser","purl_source":"derived","scope":"upstream","source":"GHSA-24mq-4vc6-2prf"}],"prev":{"headline":"mail-parser: Sender IP address spoofing in `get_server_ipaddress()","id":"CVE-2026-129297"},"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-11-16","vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"fixed":["4.6.2"],"name":"mail-parser","purl":"pkg:pypi/mail-parser","sources":["GHSA-24mq-4vc6-2prf"],"status":"fixed"}],"release":null,"scope":"upstream","status":"fixed","statuses":{"fixed":1},"vendor":null}],"vendors":["SpamScope"]},"summary":"Attacker-controlled email headers can crash mail-parser or hide malicious content from downstream scanners; apps parsing untrusted mail should care.","url":"https://insights.sbomify.com/CVE-2026-129299/"}