{"answers":{"affected":"3 open source packages ship an affected version, including copier.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53951 exists.","fix":"Upgrade copier to 9.15.2 or later.","what":"CVE-2026-53951 is a high-severity path traversal vulnerability in copier-org copier, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-53951 and fix it if it is affected.\n\nWhat it is: CVE-2026-53951 is a high-severity path traversal vulnerability in copier-org copier, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53951 exists.\n\nAffected packages and fixed versions:\n- copier (PyPI): affected from 9.5.0; fixed in 9.15.2\n- copier (PyPI): affected from 9.5.0; fixed in 9.15.2\n- copier (PyPI): affected from 9.5.0; fixed in 9.15.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-53951/ (Markdown: https://insights.sbomify.com/CVE-2026-53951/index.md)","id":"CVE-2026-53951","markdown":"https://insights.sbomify.com/CVE-2026-53951/index.md","name":"CVE-2026-53951","record":{"aliases":["GHSA-9gmc-jqmh-3rvm","PYSEC-2026-3818"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python template library","requires_auth":"none","summary":"Attackers can bypass trust checks via path traversal in Copier templates to execute arbitrary commands without user prompts.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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\n(`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 `--trust` prompt — arbitrary command execution. Version 9.15.2 patches the issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Copier: trust-prefix bypass via path traversal runs tasks unprompted","id":"CVE-2026-53951","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"GetSimple CMS \u0026 GetSimpleCMS-CE have an Unauthenticated Admin Account Creation via Setup Logic Flaw","id":"CVE-2026-53952"},"packages":[{"ecosystem":"PyPI","fixed":["9.15.2"],"introduced":["9.5.0"],"last_affected":[],"package":"copier","purl":null,"source":"GHSA-9gmc-jqmh-3rvm"},{"ecosystem":"PyPI","fixed":["9.15.2"],"introduced":["9.5.0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"GHSA-9gmc-jqmh-3rvm"},{"ecosystem":"PyPI","fixed":["9.15.2"],"introduced":["9.5.0"],"last_affected":[],"package":"copier","purl":"pkg:pypi/copier","source":"PYSEC-2026-3818"}],"prev":{"headline":"@tryghost/activitypub: XSS in Ghost's ActivityPub client","id":"CVE-2026-53950"},"products":["copier"],"published":"2026-07-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["copier-org"]},"summary":"Attackers can bypass trust checks via path traversal in Copier templates to execute arbitrary commands without user prompts.","url":"https://insights.sbomify.com/CVE-2026-53951/"}