PT-2026-56480 · Pypi · Copier

·

CVE-2026-53951

·

Published

2026-07-08

·

Updated

2026-09-10

CVSS v4.0

8.8

High

VectorAV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Name of the Vulnerable Software and Affected Versions Copier versions 9.5.0 through 9.15.1
Description An issue exists in the trust setting's prefix match within copier/ settings.py where the template URL is compared against a trusted prefix using str.startswith without path normalization. Because the URL is normalized during the actual fetch process (using Path.resolve() for local paths and libcurl dot-segment removal for HTTPS), a template reference containing .. that textually starts with a trusted prefix can be granted trust. This allows an attacker-controlled template to execute tasks, migrations, or jinja extensions without the --trust prompt, leading to arbitrary command execution.
Recommendations Update to version 9.15.2.

Exploit

Fix

Path traversal

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-53951
GHSA-9GMC-JQMH-3RVM
PYSEC-2026-3818

Affected Products

Copier