{"id":"CVE-2026-53951","published":"2026-07-08T15:26:08Z","modified":"2026-07-09T13:47:38Z","title":"Copier: trust-prefix bypass via path traversal runs tasks unprompted","vendor":"copier-org","product":"copier","tier":"tail","description":{"text":"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\n(`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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00262,"percentile":0.11035,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-9gmc-jqmh-3rvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/copier-org/copier/releases/tag/v9.15.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.21},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"copier-org","affectedVersions":[{"vendor":"copier-org","product":"copier","versions":[">= 9.5.0, < 9.15.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T13:46:41.622835Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"copier","vulnerableRanges":[">=9.5.0, <9.15.2"],"patched":["9.15.2"],"from":["GHSA-9gmc-jqmh-3rvm","PYSEC-2026-3818"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-42309","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23986","published":"2026-01-21","fixed":"9.11.2","kev":false},{"cve":"CVE-2026-34726","published":"2026-04-02","fixed":"9.14.1","kev":false,"link":{"from":"CVE-2026-34726","to":"CVE-2026-53951","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:copier","fromFixed":"9.14.1","toFixed":"9.15.2","daysApart":97}]}},{"cve":"CVE-2026-34730","published":"2026-04-02","fixed":"9.14.1","kev":false},{"cve":"CVE-2026-53951","published":"2026-07-08","fixed":"9.15.2","kev":false}],"package":"PyPI:copier"}}