Advisory

PYSEC-2026-2134

Also known as: CVE-2026-34726, GHSA-85v3-4m8g-hrh6

Summary

The record has no summary.

Details

Copier is a library and CLI app for rendering project templates. Prior to version 9.14.1, Copier's _subdirectory setting is documented as the subdirectory to use as the template root. However, the current implementation accepts parent-directory traversal such as .. and uses it directly when selecting the template root. As a result, a template can escape its own directory and make Copier render files from the parent directory without --UNSAFE. This issue has been patched in version 9.14.1.

Severity

Medium Basis: CVSS v3 score 4.4, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Dates

Published
2026-04-02 19:21 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

copier

PyPI · All systems

Affected

  • introduced 0, fixed 9.14.1 (ecosystem)

Fixed versions

9.14.1

Fix

  • Fixed version 9.14.1
    pip install --upgrade copier==9.14.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences