{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-53951","id":"CVE-2026-53951","title":"Copier: trust-prefix bypass via path traversal runs tasks unprompted","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\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 `ht","descriptionLong":"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.","published":"2026-07-08T15:26:08.626Z","updated":"2026-10-28T02:30:52.117298504Z","reserved":"2026-06-11T15:50:01.281Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"}],"rating":"high","products":["copier-org copier"],"affectedProducts":[{"vendor":"copier-org","product":"copier","defaultStatus":null,"versions":[{"version":">= 9.5.0, < 9.15.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":[">=9.5.0 <9.15.2"],"fixed":["9.15.2"],"advisory":"GHSA-9gmc-jqmh-3rvm"}],"cwes":["CWE-22","CWE-94"],"aliases":["GHSA-9gmc-jqmh-3rvm","PYSEC-2026-3818"],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-9gmc-jqmh-3rvm","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/copier-org/copier/releases/tag/v9.15.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53951.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53951","tags":["advisory"]},{"url":"https://github.com/copier-org/copier","tags":["package"]},{"url":"https://pypi.org/project/copier","tags":["package"]},{"url":"https://github.com/advisories/GHSA-9gmc-jqmh-3rvm","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00261,"epssPercentile":0.182,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-53951","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53951","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-53951","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9gmc-jqmh-3rvm","ok":true,"note":"GHSA-9gmc-jqmh-3rvm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-53951","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}