Skip to content
OpenAdvisories

Package · PyPI

copier

7 known vulnerabilities.

7 results · Feed

  • High 8.8

    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 normalizat…

  • Medium 5.5

    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 …

  • Medium 4.4

    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…

  • Medium 6.9

    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 pas…

  • Medium 6.8

    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 pas…

  • Medium 6.9

    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 passi…

  • High 8.5

    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 effectiv…