{"cve":"CVE-2026-34726","nvd":{"published":"2026-04-02T19:21:32.320","modified":"2026-07-24T21:10:00.143","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.4},"cwes":["CWE-22"],"references":["https://github.com/copier-org/copier/commit/cb80a3ffc9c3787de3ed837e04ca29a0ff8ca3df","https://github.com/copier-org/copier/releases/tag/v9.14.1","https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6","https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6"],"products":["copier-org:copier"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-34726","score":0.00397,"percentile":0.33999,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-85v3-4m8g-hrh6","url":"https://osv.dev/vulnerability/GHSA-85v3-4m8g-hrh6","summary":"Copier `_subdirectory` allows template root escape via parent-directory traversal","modified":"2026-07-13T07:26:50.377650565Z","packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":["<9.14.1"],"fixed":["9.14.1"]}]},{"id":"PYSEC-2026-2134","url":"https://osv.dev/vulnerability/PYSEC-2026-2134","summary":"","modified":"2026-07-13T07:15:12.482459421Z","packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":["<9.14.1"],"fixed":["9.14.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}