High severity · published Jul 8, 2026
CVE-2026-53951
Copier: trust-prefix bypass via path traversal runs tasks unprompted
8.8
CVSS
0.3%
EPSS
No
On KEV
Description
Copier is a library and CLI app for rendering project templates. In versions 9.5.0 through 9.15.1, the `trust` setting's prefix match (`copier/_settings.py`) compares the template URL against a trusted prefix with a raw `str.startswith` and no path normalization, while the URL is normalized when the template is actually fetched (`Path.resolve()` for local paths; libcurl dot-segment removal for `https`). A template reference that textually starts with a trusted prefix but contains `..` is therefore granted trust yet resolves to a different, attacker-controlled template, whose `tasks` / `migrations` / `jinja_extensions` then run without the `--trust` prompt — arbitrary command execution. Version 9.15.2 patches the issue.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 18% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
copier · copier-org
>= 9.5.0, < 9.15.2 · source: vendor
Affected product
CO
copier
copier-org
More from copier
8.5
CVE-2025-55201
Copier safe template has arbitrary filesystem read/write access
7.5
CVE-2026-62999
Copier: Percent-encoded dot segments in template URLs can allow trusted-prefix escape (Incomplete fix for trust-prefix bypass)
7.1
CVE-2026-23986
Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true
6.9
CVE-2025-55214
Copier safe template has filesystem write access outside destination path
5.5
CVE-2026-34730
Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode