CVE-2026-34726
MEDIUM 4.4CVSS 3.1Copier `_subdirectory` allows template root escape via parent-directory traversal
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
- 2 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-85v3-4m8g-hrh6PYSEC-2026-2134
- Sources
- NVDJSONOSV GHSA-85v3-4m8g-hrh6JSONOSV PYSEC-2026-2134JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | copier-org | copiercpe:2.3:a:copier-org:copier:*:*:*:*:*:python:*:* |
< 9.14.1 | 9.14.1 |
| OSV | PyPI | copier | < 9.14.1 | 9.14.1 |
References
- https://github.com/copier-org/copier/commit/cb80a3ffc9c3787de3ed837e04ca29a0ff8ca3df · Patch, WEB, FIX
- https://github.com/copier-org/copier/releases/tag/v9.14.1 · Release Notes, WEB, ADVISORY
- https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6 · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-34726 · ADVISORY
- https://github.com/copier-org/copier · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Apr 2026)