Skip to main content

Copier CVE-2026-62999

| EUVDEUVD-2026-51625 HIGH
Path Traversal (CWE-22)
2026-07-31 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts URL with %2e%2e or %5c encoding
  2. Delivery
    Victim accepts or receives crafted template URL
  3. Exploit
    Copier trust check passes on encoded URL form
  4. Execution
    HTTP/Git transport decodes URL, clones external attacker repository
  5. Impact
    Unsafe 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 trust configuration option) - users who do not use this feature are not exposed to the trust bypass, though they may already be running all templates as untrusted. Second, the attacker must control or be able to direct the victim to use a URL that, after percent-decoding, resolves outside the trusted prefix - this requires the victim to accept a template URL from an untrusted source (e.g., a link in documentation, a CI configuration, or a social engineering message). Third, the victim must actively run Copier with the crafted URL (UI:R per CVSS vector), meaning silent or automated exploitation without any user action is not possible. Limiting factors: the CVSS AC:H rating reflects that the encoded URL must be carefully crafted to match the prefix in encoded form while resolving elsewhere decoded; broad automated scanning-style exploitation is therefore unlikely. Affected versions are strictly 9.5.0-9.16.0; any deployment on 9.17.0+ is not vulnerable regardless of trust configuration.

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 https://github.com/trusted-org/%2e%2e/attacker/malicious-repo.git. A victim whose Copier configuration trusts the prefix https://github.com/trusted-org/ runs copier copy with the crafted URL; Copier's trust check passes on the encoded form, but the Git transport resolves and clones the attacker's repository. Copier then executes the malicious repository's task hooks with the victim's OS privileges, achieving arbitrary code execution on the developer's workstation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

copier 9.5.0, ≤ 9.16.0

Affected Packages

euvd copier_9_5_0 no fix

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch: Upgrade to Copier v9.17.0 or later. Until patched, restrict Copier execution to organization-controlled templates only.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular Python project-scaffolding CLI among developers and CI pipelines
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy