CVE-2026-34726: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in copier-org copier
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.
AI Analysis
Technical Summary
The copier library and CLI app for rendering project templates had an improper limitation of pathname to a restricted directory (CWE-22). Specifically, the _subdirectory setting accepted parent-directory traversal sequences, allowing templates to access and render files outside their intended directory scope. This vulnerability affects versions before 9.14.1 and has been fixed in that version.
Potential Impact
An attacker or user providing a crafted template path could cause copier to render files from directories outside the intended template root. This could lead to unintended information disclosure or manipulation of files outside the template scope. The CVSS score of 4.4 reflects a medium severity with low confidentiality and integrity impact and no availability impact. Exploitation requires local access and user interaction.
Mitigation Recommendations
Upgrade copier to version 9.14.1 or later where this path traversal vulnerability is patched. No other mitigation is required as the issue is fixed in the official release.
CVE-2026-34726: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in copier-org copier
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The copier library and CLI app for rendering project templates had an improper limitation of pathname to a restricted directory (CWE-22). Specifically, the _subdirectory setting accepted parent-directory traversal sequences, allowing templates to access and render files outside their intended directory scope. This vulnerability affects versions before 9.14.1 and has been fixed in that version.
Potential Impact
An attacker or user providing a crafted template path could cause copier to render files from directories outside the intended template root. This could lead to unintended information disclosure or manipulation of files outside the template scope. The CVSS score of 4.4 reflects a medium severity with low confidentiality and integrity impact and no availability impact. Exploitation requires local access and user interaction.
Mitigation Recommendations
Upgrade copier to version 9.14.1 or later where this path traversal vulnerability is patched. No other mitigation is required as the issue is fixed in the official release.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-30T18:41:20.753Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69ceb81be6bfc5ba1df6de90
Added to database: 4/2/2026, 6:40:27 PM
Last enriched: 4/9/2026, 10:45:03 PM
Last updated: 5/20/2026, 8:52:53 PM
Views: 32
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.