Intel

AIKIDO-2026-410875

copier is vulnerable to Path Traversal

GHSA-p86q-xwwq-6c64Published Aug 21, 2026
August 21, 2026

55

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the copier library to the patch version.

Who does this affect?

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.

Package

Versions

9.1.0 - 9.17.1

Fixed in 9.17.2

Background info

copier is vulnerable to Path Traversal in versions 9.1.0 - 9.17.1.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea