CVE-2026-23986
CVE-2026-23986 is a high-severity vulnerability in Copier-org Copier with a CVSS 3.x base score of 7.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-61.
Key facts
- Severity: High (CVSS 3.x base score 7.1)
- CVSS v4: 6.9
- EPSS exploit prediction: 0% (13th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-4141
- Weakness: CWE-61
- Affected product: Copier-org Copier
- Published:
- Last modified:
Description
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 (according to the user's write permissions), e.g., to cause havoc. Version 9.11.2 patches the issue.
Frequently asked questions
- What is CVE-2026-23986?
- 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 (according to the user's write permissions), e.g., to cause havoc. Version 9.11.2 patches the issue.
- How severe is CVE-2026-23986?
- CVE-2026-23986 has a CVSS 3.x base score of 7.1, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity high, and availability high.
- Is CVE-2026-23986 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (13th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-23986?
- CVE-2026-23986 affects Copier-org Copier. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-23986?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-23986 have an EU (EUVD) identifier?
- Yes. CVE-2026-23986 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-4141.
- When was CVE-2026-23986 published?
- CVE-2026-23986 was published on 2026-01-21 and last updated on 2026-06-17.
References
- https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6
- https://github.com/copier-org/copier/releases/tag/v9.11.2
- https://github.com/copier-org/copier/security/advisories/GHSA-4fqp-r85r-hxqh
Affected products (1)
- cpe:2.3:a:copier-org:copier:*:*:*:*:*:python:*:*
More vulnerabilities in Copier-org Copier
- CVE-2026-34730 — Medium (CVSS 5.5): Copier is a library and CLI app for rendering project templates. Prior to version 9.14.1, Copier's _external_data…
- CVE-2026-23968 — Medium (CVSS 5.5): Copier is a library and CLI app for rendering project templates. Prior to version 9.11.2, Copier suggests that it's…
- CVE-2026-34726 — Medium (CVSS 4.4): Copier is a library and CLI app for rendering project templates. Prior to version 9.14.1, Copier's _subdirectory…
All CVEs affecting Copier-org Copier →
Other CWE-61 vulnerabilities
- CVE-2026-34078 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to 1.16.4, the Flatpak portal accepts paths…
- CVE-2025-62596 — Critical (CVSS 10.0): Youki is a container runtime written in Rust. In versions 0.5.6 and below, youki’s apparmor handling performs…
- CVE-2025-62161 — Critical (CVSS 10.0): Youki is a container runtime written in Rust. In versions 0.5.6 and below, the initial validation of the source…
- CVE-2025-23394 — Critical (CVSS 9.8): A UNIX Symbolic Link (Symlink) Following vulnerability in openSUSE Tumbleweed cyrus-imapd allows escalation from cyrus…
- CVE-2024-54661 — Critical (CVSS 9.8): readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- CVE-2026-55447 — Critical (CVSS 9.6): Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.2, by controlling a files…