p PatchFirst

PatchFirst · Latest vulnerabilities

copier vulnerabilities

Vulnerabilities published for copier in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 7

  1. CVE-2026-53951

    High · CVSS 8.8EPSS 0.26%Fix available

    Copier: trust-prefix bypass via path traversal runs tasks unprompted

    Copier is a library and CLI app for rendering project templates. In versions 9.5.0 through 9.15.1, the `trust` setting's prefix match (`copier/_settings.py`) compares the template URL against a trusted prefix with a raw `str.startswith` and no path normalization, while the URL is normalized when the template is actually fetched (`Path.resolve()` for local paths; libcurl dot-segment removal for `https`). A template reference that textually starts with a trusted prefix but contains `..` is therefore granted trust yet resolves to a different, attacker-controlled template, whose `tasks` / `migrations` / `jinja_extensions` then run without the `--

    • Update to 9.15.2
    Published Updated
  2. CVE-2026-34730

    Medium · CVSS 5.5EPSS 0.3%Fix available

    Copier `_external_data` allows path traversal and absolute-path local file read without unsafe mode

    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.

    • Update to 9.14.1
    Published Updated
  3. CVE-2026-34726

    Medium · CVSS 4.4EPSS 0.4%Fix available

    Copier `_subdirectory` allows template root escape via parent-directory traversal

    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.

    • Update to 9.14.1
    Published Updated
  4. CVE-2026-23986

    Medium · CVSS 6.9EPSS 0.27%Fix available

    Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true

    Copier is a library and CLI app for rendering project templates. Prior to version 9.11.2, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently write to arbitrary directories outside the destination path by using directory a symlink along with `_preserve_symlinks: true` and a generated directory structure whose rendered path is inside the symlinked directory. This way, a malicious template author can create a template that overwrites arbitrary files

    • Update to 9.11.2
    Published Updated
  5. CVE-2026-23968

    Medium · CVSS 6.8EPSS 0.24%Fix available

    Copier safe template has arbitrary filesystem read access via symlinks when _preserve_symlinks: false

    Copier is a library and CLI app for rendering project templates. Prior to version 9.11.2, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently include arbitrary files/directories outside the local template clone location by using symlinks along with `_preserve_symlinks: false` (which is Copier's default setting). Version 9.11.2 patches the issue.

    • Update to 9.11.2
    Published Updated
  6. CVE-2025-55214

    Medium · CVSS 6.9EPSS 0.26%Fix available

    Copier safe template has filesystem write access outside destination path

    Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the --UNSAFE,--trust flag. As it turns out, a safe template can currently write files outside the destination path where a project shall be generated or updated. This is possible when rendering a generated directory structure whose rendered path is either a relative parent path or an absolute path. Constructing such paths is possible using Copier's builtin pathjoin Jinja filter and its

    • Update to 9.9.1
    Published Updated
  7. CVE-2025-55201

    High · CVSS 8.5EPSS 0.26%Fix available

    Copier safe template has arbitrary filesystem read/write access

    Copier library and CLI app for rendering project templates. Prior to 9.9.1, a safe template can currently read and write arbitrary files because Copier exposes a few pathlib.Path objects in the Jinja context which have unconstrained I/O methods. This effectively renders the security model w.r.t. filesystem access useless. This vulnerability is fixed in 9.9.1.

    • Update to 9.9.1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →