# CVE-2026-34730: Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T22:38:39.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-hgjq-p8cr-gg4h, PYSEC-2026-2135
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- copier-org copier: < 9.14.1; before 9.14.1
- copier (PyPI): before 9.14.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/copier-org/copier/security/advisories/GHSA-hgjq-p8cr-gg4h> (exploit, evidence, vendor-advisory, web)
- <https://github.com/copier-org/copier/commit/5413062eb17b73dc885f5e645cdc161e69ef641b> (fix, patch, web)
- <https://github.com/copier-org/copier/releases/tag/v9.14.1> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34730> (advisory)
- <https://github.com/copier-org/copier> (package)

## Sources

- CVE List: [CVE-2026-34730](https://www.cve.org/CVERecord?id=CVE-2026-34730), CVE Terms of Use, modified 2026-04-03
- GitHub Advisory Database: [GHSA-hgjq-p8cr-gg4h](https://github.com/advisories/GHSA-hgjq-p8cr-gg4h), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-34730](https://nvd.nist.gov/vuln/detail/CVE-2026-34730), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2135](https://osv.dev/vulnerability/PYSEC-2026-2135), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-34730 · Whole record: https://cve.day/CVE-2026-34730.json · Rebuilt by cve.day 2026-11-25T22:59:17.838Z
