{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-34726","id":"CVE-2026-34726","title":"Copier `_subdirectory` allows template root escape via parent-directory traversal","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 fil","descriptionLong":"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.","published":"2026-04-02T18:07:35.517Z","updated":"2026-10-28T02:30:49.985438569Z","reserved":"2026-03-30T18:41:20.753Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["copier-org copier"],"affectedProducts":[{"vendor":"copier-org","product":"copier","defaultStatus":null,"versions":[{"version":"< 9.14.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":["<9.14.1"],"fixed":["9.14.1"],"advisory":"GHSA-85v3-4m8g-hrh6"}],"cwes":["CWE-22"],"aliases":["GHSA-85v3-4m8g-hrh6","PYSEC-2026-2134"],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web","evidence"]},{"url":"https://github.com/copier-org/copier/commit/cb80a3ffc9c3787de3ed837e04ca29a0ff8ca3df","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/copier-org/copier/releases/tag/v9.14.1","tags":["x_refsource_MISC","Release Notes","web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34726.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34726","tags":["advisory"]},{"url":"https://github.com/copier-org/copier","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00406,"epssPercentile":0.35649,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-34726","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34726","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-34726","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-85v3-4m8g-hrh6","ok":true,"note":"GHSA-85v3-4m8g-hrh6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34726","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}