{"answers":{"affected":"3 open source packages ship an affected version, including eml-parser. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-29780 exists.","fix":"Upgrade eml-parser to 2.0.1 or later.","what":"CVE-2026-29780 is a medium-severity path traversal vulnerability in GOVCERT-LU eml_parser, published on 7 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-29780 and fix it if it is affected.\n\nWhat it is: CVE-2026-29780 is a medium-severity path traversal vulnerability in GOVCERT-LU eml_parser, published on 7 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-29780 exists.\n\nAffected packages and fixed versions:\n- eml-parser (PyPI): affected all versions; fixed in 2.0.1\n- eml-parser (PyPI): affected all versions; fixed in 2.0.1\n- eml-parser (PyPI): affected all versions; fixed in 2.0.1\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.\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-29780/ (Markdown: https://insights.sbomify.com/CVE-2026-29780/index.md)","id":"CVE-2026-29780","markdown":"https://insights.sbomify.com/CVE-2026-29780/index.md","name":"CVE-2026-29780","record":{"aliases":["GHSA-389r-rccm-h3h5","PYSEC-2026-2148"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python email parsing library","requires_auth":"none","summary":"Attackers can write arbitrary files outside the intended directory via malicious email attachments when using the vulnerable example script.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"eml_parser","vendor":"govcert.lu"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"eml_parser serves as a python module for parsing eml files and returning various information found in the e-mail as well as computed information. Prior to version 2.0.1, the official example script examples/recursively_extract_attachments.py contains a path traversal vulnerability that allows arbitrary file write outside the intended output directory. Attachment filenames extracted from parsed emails are directly used to construct output file paths without any sanitization, allowing an attacker-controlled filename to escape the target directory. This issue has been patched in version 2.0.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-03-10","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-10T05:46:46Z","kind":"github_poc","ref":"https://github.com/redyank/CVE-2026-29780","stars":0,"title":"CVE-2026-29780 eml-parser"}],"tier":"weaponised"},"has_fix":true,"headline":"eml_parser: Path Traversal in Official Example Script Leading to Arbitrary File Write","id":"CVE-2026-29780","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Sliver: Authenticated Nil-Pointer Dereference in Handlers","id":"CVE-2026-29781"},"packages":[{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"eml-parser","purl":null,"source":"GHSA-389r-rccm-h3h5"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"eml-parser","purl":"pkg:pypi/eml-parser","source":"GHSA-389r-rccm-h3h5"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"eml-parser","purl":"pkg:pypi/eml-parser","source":"PYSEC-2026-2148"}],"prev":{"headline":"UptimeFlare: Montior config / Credentials in `workerConfig` exposed in client-side JavaScript bundle","id":"CVE-2026-29779"},"products":["eml_parser"],"published":"2026-03-07","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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-09","vendors":["GOVCERT-LU"]},"summary":"Attackers can write arbitrary files outside the intended directory via malicious email attachments when using the vulnerable example script.","url":"https://insights.sbomify.com/CVE-2026-29780/"}