Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts URL with %2e%2e or %5c encoding
-
DeliveryVictim accepts or receives crafted template URL
-
ExploitCopier trust check passes on encoded URL form
-
ExecutionHTTP/Git transport decodes URL, clones external attacker repository
-
ImpactUnsafe template task hooks execute arbitrary code on victim's system
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions to align. First, the victim must have configured one or more trusted repository prefixes in their Copier settings (the |
| Impact | The CVSS 7.5 score (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects a genuine but conditionally constrained risk. The High attack complexity (AC:H) captures the requirement to craft an encoded URL that both visually matches a trusted prefix and resolves elsewhere after decoding - a non-trivial but well-understood technique for anyone familiar with URL normalization discrepancies. The impact metrics (C:H/I:H/A:H) are justified because Copier templates can execute arbitrary shell commands via task hooks, giving an attacker full code execution in the context of the user running Copier. The critical limiting factors are user interaction (UI:R) and the requirement that the victim has the trusted-prefix feature configured. Organizations that do not use Copier's trust feature are not exposed to the bypass, though they may still be running untrusted templates. No EPSS score was provided in the input data, so exploitation probability cannot be quantified from that signal. The vulnerability is not listed in CISA KEV and no public exploit code was identified, indicating no confirmed widespread exploitation at time of analysis. For teams actively using Copier's trust configuration to enforce template safety boundaries, this is a genuine priority because the bypass completely negates that control. |
| Exploit ScenarioDerived | An attacker hosts a malicious Copier template repository at an external URL and crafts a link such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Copier CLI and library versions 9.5.0 through 9.16.0 expose a trust-prefix bypass that permits unsafe template features from untrusted repositories to execute on a victim's system after user interaction. The vulnerability arises because Copier's trusted-repository prefix check evaluates the raw percent-encoded URL string, while the underlying HTTP or Git transport subsequently decodes it - meaning a URL containing encoded dot-dot segments (e.g., %2e%2e) or encoded separators (%2f, %5c) can appear to match a trusted prefix while actually resolving to an entirely different, attacker-controlled repository. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code was identified in the provided data; the issue is patched in v9.17.0.
RemediationAI
The primary fix is to upgrade Copier to version 9.17.0 or later, which resolves the bypass by percent-decoding and backslash-normalizing URLs before the trust-prefix comparison. The patched release is confirmed at https://github.com/copier-org/copier/releases/tag/v9.17.0 and the fix commit is 7408f0d6287a7bf452715fd9f25dc54eaba3c295. If immediate upgrade is not possible, a targeted workaround is to ensure all entries in the trusted-prefix configuration use fully decoded, canonical URL forms and to audit any Copier invocations that accept externally-supplied template URLs. As a compensating control, restricting Copier usage to internally-hosted template repositories (where the URL is not attacker-influenced) eliminates the attack surface entirely; the trade-off is reduced flexibility in consuming third-party templates. There is no known workaround that preserves the trust-prefix feature while preventing the bypass on affected versions - upgrade is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Copier is a Python-based project-templating engine (CPE: cpe:2.3:a:copier-org:copier) that fetches templates from Git repositories and renders them using Jinja2, optionally executing task hooks. A 'trust' configuration allows designated repository prefixes to use unsafe template features (e.g., arbitrary code execution via tasks). The vulnerable normalization logic resided in copier/_settings.py in the _normalize() function: it ran posixpath.normpath() on the raw URL path without first percent-decoding it. Because RFC 3986 percent-encoding allows characters like . (%2e), / (%2f), and \ (%5c) to be encoded, a path such as /user/%2e%2e/evil/repo.git passes a prefix check for /user/ in encoded form but resolves to /evil/repo.git after the HTTP or Git transport decodes it. This is a classic CWE-22 (Path Traversal) instance: the application uses a representation of a path for a security decision that differs from the representation used for actual resource access. The fix (commit 7408f0d) adds a urllib.parse.unquote() call and backslash normalization before posixpath.normpath(), ensuring trust evaluation and transport resolution operate on the same decoded canonical path.
Know when Copier gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attacker needs no credentials (PR:N) but user must actively run Copier with a crafted URL (UI:R, AC:H); template hooks yield full code execution within unchanged scope (S:U, C:H/I:H/A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
Copier is a library and CLI app for rendering project templates. From 9.5.0 through 9.16.0, percent-encoded parent-directory segments or encoded path separators in a template URL can match a configured trusted repository prefix before an HTTP server or Git transport decodes the path, allowing unsafe template features from a repository outside the trusted prefix to run after user interaction. This issue is fixed in version 9.17.0.
Executive ViewAI
Copier project templating tool versions 9.5.0 through 9.16.0 contain a URL validation bypass allowing attackers to execute arbitrary code through malicious template repositories. Development teams using Copier for infrastructure-as-code or project scaffolding face supply-chain attack risk if they execute templates from repositories that appear trusted but are actually attacker-controlled. This requires immediate patching to eliminate the attack vector.
Apply vendor patch: Upgrade to Copier v9.17.0 or later. Until patched, restrict Copier execution to organization-controlled templates only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Copier versions prior to 9.11.2 allow local attackers to write arbitrary files outside the intended project destination
Copier versions before 9.11.2 allow local attackers to read arbitrary files outside the template directory by exploiting
Trust-boundary bypass in Copier 9.5.0 through 9.15.1 lets an attacker-controlled template execute arbitrary commands wit
EUVD-2026-51625
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB