<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T23:41:09.821048+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-34730</id>
    <title>CVE-2026-34730 — Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode</title>
    <updated>2026-10-02T23:41:09.825008+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> copier-org copier</p>
<p>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.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-34730"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-hgjq-p8cr-gg4h</id>
    <title>GHSA-hgjq-p8cr-gg4h — Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode</title>
    <updated>2026-10-02T23:41:09.825087+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: copier</p>
<p>### Summary</p>
<p>Copier's `_external_data` feature allows a template to load YAML files using template-controlled paths. The documentation describes these values as relative paths from the subproject destination, so relative paths themselves appear to be part of the intended feature model.</p>
<p>However, the current implementation also allows destination-external reads, including:</p>
<p>- Parent-directory paths such as `../secret.yml`
- Absolute paths such as `/tmp/secret.yml`</p>
<p>and then exposes the parsed contents in rendered output.</p>
<p>This is possible without `--UNSAFE`, which makes the behavior potentially dangerous when Copier is run against untrusted templates. I am not certain this is unintended behavior, but it is security-sensitive and appears important to clarify.</p>
<p>### Details</p>
<p>The relevant flow is:</p>
<p>1. A template defines `_external_data`
2. Copier renders the configured path string
3. Copier calls `load_answersfile_data(dst_path, rendered_path, warn_on_missing=True)`
4. `load_answersfile_data()` opens `Path(dst_path, answers_file)` directly
5. Parsed YAML becomes available as `_external_data.&lt;name&gt;` during rendering</p>
<p>Relevant code:</p>
<p>- &lt;https://github.com/copier-org/copier/blob/7aa7021bd73797c982492bac3535515d4484fdb7/copier/_main.py#L329-L332&gt;
- &lt;https://github.com/copier-org/copier/blob/7aa7021bd73797c982492bac3535515d4484fdb7/copier/_user_data.py#L584-L592&gt;</p>
<p>The sink is:</p>
<p>```python
with Path(dst_path, answers_file).open("rb") as fd:
    return yaml.safe_load(fd)
```</p>
<p>There is no…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-hgjq-p8cr-gg4h"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/pysec-2026-2135</id>
    <title>PYSEC-2026-2135</title>
    <updated>2026-10-02T23:41:09.825157+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: copier</p>
<p>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.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/pysec-2026-2135"/>
  </entry>
</feed>
