{"id":"CVE-2026-34730","published":"2026-04-02T18:09:16Z","modified":"2026-04-03T13:01:14Z","title":"Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode","vendor":"copier-org","product":"copier","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00305,"percentile":0.23856,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-hgjq-p8cr-gg4h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/copier-org/copier/commit/5413062eb17b73dc885f5e645cdc161e69ef641b","tags":["x_refsource_MISC"]},{"url":"https://github.com/copier-org/copier/releases/tag/v9.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.77},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"copier-org","affectedVersions":[{"vendor":"copier-org","product":"copier","versions":["< 9.14.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-03T13:01:09.904637Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"copier","vulnerableRanges":["<9.14.1"],"patched":["9.14.1"],"from":["GHSA-hgjq-p8cr-gg4h","PYSEC-2026-2135"],"provenance":"source"}],"summary":{"text":"Copier, a library and CLI for rendering project templates, contains a path traversal flaw in its _external_data feature, which lets a template specify file paths that Copier loads as YAML without restricting them to the template's own directory. An attacker who can get a user to render a malicious template, with a user running Copier needing to take that action, can read arbitrary YAML-parseable local files accessible to that user and have their contents exposed in the rendered output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:33Z"},"euvd":{"id":"EUVD-2026-18497","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-copier-org-copier-cve-2025-55214","parents":[{"from":"CVE-2025-55214","to":"CVE-2026-34730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["copier/_main.py","copier/errors.py"],"commits":["https://github.com/copier-org/copier/commit/fdbc0167cc22780b497e4db176feaf6f024757d6","https://github.com/copier-org/copier/commit/5413062eb17b73dc885f5e645cdc161e69ef641b"],"basis":"shared function","functions":["__init__"]}]}],"packageHistory":[{"cve":"CVE-2026-23968","published":"2026-01-21","fixed":"9.11.2","kev":false},{"cve":"CVE-2026-23986","published":"2026-01-21","fixed":"9.11.2","kev":false,"link":{"from":"CVE-2026-23986","to":"CVE-2026-34730","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:copier","fromFixed":"9.11.2","toFixed":"9.14.1","daysApart":71},{"kind":"same-code","provenance":"machine","files":["copier/_main.py"],"commits":["https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6","https://github.com/copier-org/copier/commit/5413062eb17b73dc885f5e645cdc161e69ef641b"],"basis":"shared file"}]}},{"cve":"CVE-2026-34726","published":"2026-04-02","fixed":"9.14.1","kev":false},{"cve":"CVE-2026-34730","published":"2026-04-02","fixed":"9.14.1","kev":false},{"cve":"CVE-2026-53951","published":"2026-07-08","fixed":"9.15.2","kev":false}],"package":"PyPI:copier"}}