copier is vulnerable to Path Traversal
55
CVE Score
Medium
Path Traversal
Copier processes templates using a YAML !include tag that expands glob patterns to load additional configuration files. The tag only rejects absolute paths and does not confirm the resolved path stays within the template root, so a .. segment in a glob pattern reaches files outside the template directory. Processing an untrusted template with copier copy or copier update can disclose local files such as .copier-answers.yml, tokens, and other secrets. The fix resolves !include paths and raises ForbiddenPathError for paths outside the template root.
Upgrade the copier library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run copier against an untrusted template that uses the YAML !include tag.
9.1.0 - 9.17.1
Fixed in 9.17.2copier is vulnerable to Path Traversal in versions 9.1.0 - 9.17.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.