Advisory

PYSEC-2026-2135

Also known as: CVE-2026-34730, GHSA-hgjq-p8cr-gg4h

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 _external_data feature allows a template to load YAML files using template-controlled paths. If untrusted templates are in scope, a malicious template can read attacker-chosen YAML-parseable local files that are accessible to the user running Copier and expose their contents in rendered output. This issue has been patched in version 9.14.1.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/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