GHSA-4fqp-r85r-hxqh · Severity: medium · Ecosystem: pip — 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 (according to the user's write permissions), e.g., to cause havoc. Version 9.11.2 patches the issue.
Conclusion & alert: CVE-2026-23986 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.22%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.06% | 0.22% | +0.17% |
| 2 | 2026-03-04 | 0.02% | 0.06% | +0.04% |
| 3 | 2026-01-22 | — | 0.02% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.9 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 7.1 | 3.1 | HIGH |
|
1.8 | 5.2 | [email protected] |
GHSA-4fqp-r85r-hxqh · Severity: medium · Ecosystem: pip — Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| copier-org | copier | < 9.11.2 | cpe:2.3:a:copier-org:copier:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6 | Patch |
| https://github.com/copier-org/copier/releases/tag/v9.11.2 | Product Release Notes |
| https://github.com/copier-org/copier/security/advisories/GHSA-4fqp-r85r-hxqh | Exploit Third Party Advisory |