Medium severity · published Apr 2, 2026
CVE-2026-34726
Copier `_subdirectory` allows template root escape via parent-directory traversal
4.4
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
copier · copier-org
< 9.14.1 · source: vendor, NVD
Affected product
CO
copier
copier-org
More from copier
8.8
CVE-2026-53951
Copier: trust-prefix bypass via path traversal runs tasks unprompted
8.5
CVE-2025-55201
Copier safe template has arbitrary filesystem read/write access
7.5
CVE-2026-62999
Copier: Percent-encoded dot segments in template URLs can allow trusted-prefix escape (Incomplete fix for trust-prefix bypass)
7.1
CVE-2026-23986
Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true
6.9
CVE-2025-55214
Copier safe template has filesystem write access outside destination path