Intel

AIKIDO-2025-10567

copier is vulnerable to Path Traversal

Path TraversalCVE-2025-55214 Published Aug 19, 2025

60

Medium Risk

This Affects:

Pythoncopier
7.1.0 - 9.9.0
Fixed in 9.9.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to path traversal due to improper sanitization of user-controlled paths during Jinja template rendering. The vulnerable code exposed raw string paths in the rendering context, allowing directory escape sequences (e.g., ../../) to be accepted. An attacker could craft malicious input (e.g., setting answers_relpath to ../../../etc/passwd) during template generation. When the application uses this value to resolve file paths, the traversal sequences can redirect operations to unintended file system locations, potentially exposing sensitive data, enabling remote code execution, or compromising the system.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

copier is vulnerable to Path Traversal in versions 7.1.0 - 9.9.0.

How to fix this

Upgrade the copier library to the patch version.