{"cve":"CVE-2025-55214","nvd":{"published":"2025-08-18T17:15:30.310","modified":"2026-06-17T09:41:28.297","status":"Deferred","description":"Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the --UNSAFE,--trust flag. As it turns out, a safe template can currently write files outside the destination path where a project shall be generated or updated. This is possible when rendering a generated directory structure whose rendered path is either a relative parent path or an absolute path. Constructing such paths is possible using Copier's builtin pathjoin Jinja filter and its builtin _copier_conf.sep variable, which is the platform-native path separator. This way, a malicious template author can create a template that overwrites arbitrary files (according to the user's write permissions), e.g., to cause havoc. This vulnerability is fixed in 9.9.1.","cvss_v4":{"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":6.9},"cvss_v3":null,"cwes":["CWE-22"],"references":["https://github.com/copier-org/copier/commit/fdbc0167cc22780b497e4db176feaf6f024757d6","https://github.com/copier-org/copier/security/advisories/GHSA-p7q8-grrj-3m8w"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:06:45.861874017+00:00"},"epss":{"cve":"CVE-2025-55214","score":0.00264,"percentile":0.18384,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-p7q8-grrj-3m8w","url":"https://osv.dev/vulnerability/GHSA-p7q8-grrj-3m8w","summary":"Copier's safe template has filesystem write access outside destination path","modified":"2026-07-07T17:57:04.383208337Z","packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":[">=7.1.0 <9.9.1"],"fixed":["9.9.1"]}]},{"id":"PYSEC-2026-1273","url":"https://osv.dev/vulnerability/PYSEC-2026-1273","summary":"Copier's safe template has filesystem write access outside destination path","modified":"2026-07-07T17:47:20.657869518Z","packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":[">=7.1.0 <9.9.1"],"fixed":["9.9.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}