Skip to main content
← All vulnerabilities
CVE-2026-34726GHSA-85V3-4M8G-HRH6PYSEC-2026-2134

Copier `_subdirectory` allows template root escape via parent-directory traversal

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.14.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • copier-org copier

    fixed in 9.14.1

  • copierPyPI

    fixed in 9.14.1

References 3

GitHub · copier-org/copier