Description
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.
Published: 2026-07-31
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A vulnerability in the Copier library allows attackers to forge template URLs that contain percent‑encoded parent‑directory references or encoded path separators. When such URLs are entered, the URL is matched against a configured trusted repository prefix before the HTTP server or Git client performs decoding, enabling code from an untrusted repository to be executed as if it were part of the trusted set. This bypass of the trust boundary can lead to the execution of malicious template features, exposing the system to arbitrary code execution. The weakness is classified as CWE‑180 and CWE‑22, reflecting code injection via percent‑encoding and path traversal.

Affected Systems

The affected product is Copier by copier‑org. All releases from 9.5.0 through 9.16.0 are vulnerable. Versions starting with 9.17.0 contain the fix.

Risk and Exploitability

The CVSS score of 7.5 indicates a high risk, but the EPSS score is below 1%, suggesting that the likelihood of exploitation in the wild is low. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted template URL and for the victim to run Copier against it, after which the malicious code would be executed. Users who frequently pull templates from external sources should treat this as a potential remote code execution risk.

Generated by OpenCVE AI on August 2, 2026 at 03:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Copier version 9.17.0 or later
  • If upgrading is not immediately possible, restrict template URLs to precisely trusted prefixes and disallow percent‑encoded path components
  • If the application supports disabling unsafe template features, enable those restrictions to reduce the risk

Generated by OpenCVE AI on August 2, 2026 at 03:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Copier-org
Copier-org copier
Vendors & Products Copier-org
Copier-org copier

Fri, 31 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Copier: Percent-encoded dot segments in template URLs can allow trusted-prefix escape (Incomplete fix for trust-prefix bypass)
Weaknesses CWE-180
CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Copier-org Copier
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T19:59:30.346Z

Reserved: 2026-07-14T23:10:57.032Z

Link: CVE-2026-62999

cve-icon Vulnrichment

Updated: 2026-07-31T19:59:25.678Z

cve-icon NVD

Status : Received

Published: 2026-07-31T20:16:53.523

Modified: 2026-07-31T20:16:53.523

Link: CVE-2026-62999

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T04:00:06Z

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')