{"answers":{"affected":"3 open source packages ship an affected version, including copier. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34730 exists.","fix":"Upgrade copier to 9.14.1 or later.","what":"CVE-2026-34730 is a medium-severity path traversal vulnerability in copier-org copier, published on 2 Apr 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-34730 and fix it if it is affected.\n\nWhat it is: CVE-2026-34730 is a medium-severity path traversal vulnerability in copier-org copier, published on 2 Apr 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-34730 exists.\n\nAffected packages and fixed versions:\n- copier (PyPI): affected all versions; fixed in 9.14.1\n- copier (PyPI): affected all versions; fixed in 9.14.1\n- copier (PyPI): affected all versions; fixed in 9.14.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-34730/ (Markdown: https://insights.sbomify.com/CVE-2026-34730/index.md)","id":"CVE-2026-34730","markdown":"https://insights.sbomify.com/CVE-2026-34730/index.md","name":"CVE-2026-34730","record":{"aliases":["GHSA-hgjq-p8cr-gg4h","PYSEC-2026-2135"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python template library","requires_auth":"none","summary":"A malicious template can read arbitrary local YAML files and expose their contents in rendered output, affecting users of the Copier library.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"copier","vendor":"copier-org"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Copier is a library and CLI app for rendering project templates. Prior to version 9.14.1, Copier's _external_data feature allows a template to load YAML files using template-controlled paths. If untrusted templates are in scope, a malicious template can read attacker-chosen YAML-parseable local files that are accessible to the user running Copier and expose their contents in rendered output. This issue has been patched in version 9.14.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode","id":"CVE-2026-34730","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":"AVideo: Unauthenticated Live Stream Termination via RTMP Callback on_publish_done.php","id":"CVE-2026-34731"},"packages":[{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":null,"source":"GHSA-hgjq-p8cr-gg4h"},{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"GHSA-hgjq-p8cr-gg4h"},{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"PYSEC-2026-2135"}],"prev":{"headline":"phpMyFAQ: Stored XSS via Regex Bypass in Filter::removeAttributes()","id":"CVE-2026-34729"},"products":["copier"],"published":"2026-04-02","related":[{"cvss_score":6.9,"headline":"Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true","id":"CVE-2026-23986","kev_date_added":null,"published":"2026-01-21"},{"cvss_score":6.8,"headline":"Copier safe template has arbitrary filesystem read access via symlinks when _preserve_symlinks: false","id":"CVE-2026-23968","kev_date_added":null,"published":"2026-01-21"},{"cvss_score":4.4,"headline":"Copier `_subdirectory` allows template root escape via parent-directory traversal","id":"CVE-2026-34726","kev_date_added":null,"published":"2026-04-02"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-03","vendors":["copier-org"]},"summary":"A malicious template can read arbitrary local YAML files and expose their contents in rendered output, affecting users of the Copier library.","url":"https://insights.sbomify.com/CVE-2026-34730/"}