{"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-34726 exists.","fix":"Upgrade copier to 9.14.1 or later.","what":"CVE-2026-34726 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-34726 and fix it if it is affected.\n\nWhat it is: CVE-2026-34726 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-34726 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-34726/ (Markdown: https://insights.sbomify.com/CVE-2026-34726/index.md)","id":"CVE-2026-34726","markdown":"https://insights.sbomify.com/CVE-2026-34726/index.md","name":"CVE-2026-34726","record":{"aliases":["GHSA-85v3-4m8g-hrh6","PYSEC-2026-2134"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python template library","requires_auth":"none","summary":"Attackers can use parent-directory traversal in the _subdirectory setting to escape the template root and render files from outside the intended directory.","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":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/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 _subdirectory setting is documented as the subdirectory to use as the template root. However, the current implementation accepts parent-directory traversal such as .. and uses it directly when selecting the template root. As a result, a template can escape its own directory and make Copier render files from the parent directory without --UNSAFE. 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 `_subdirectory` allows template root escape via parent-directory traversal","id":"CVE-2026-34726","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":"Vikunja ahs a TOTP Two-Factor Authentication Bypass via OIDC Login Path","id":"CVE-2026-34727"},"packages":[{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":null,"source":"GHSA-85v3-4m8g-hrh6"},{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"GHSA-85v3-4m8g-hrh6"},{"ecosystem":"PyPI","fixed":["9.14.1"],"introduced":["0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"PYSEC-2026-2134"}],"prev":{"headline":"dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration","id":"CVE-2026-34725"},"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":5.5,"headline":"Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode","id":"CVE-2026-34730","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":"Attackers can use parent-directory traversal in the _subdirectory setting to escape the template root and render files from outside the intended directory.","url":"https://insights.sbomify.com/CVE-2026-34726/"}