Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34730

CVE-2026-34730: Copier Path Traversal Vulnerability

CVE-2026-34730 is a path traversal flaw in Copier that allows malicious templates to read local files. This post covers the technical details, affected versions before 9.14.1, impact on data exposure, and mitigation.

Published: April 2, 2026

CVE-2026-34730 Overview

CVE-2026-34730 is a Path Traversal vulnerability in Copier, a library and CLI application 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.

Critical Impact

Attackers can leverage malicious templates to read sensitive YAML-parseable files from the local system, potentially exposing credentials, configuration secrets, or other sensitive data accessible to the user running Copier.

Affected Products

  • Copier versions prior to 9.14.1

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-34730 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-34730

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), which occurs when software uses external input to construct a pathname that is intended to identify a file or directory located underneath a restricted parent directory, but fails to properly neutralize special elements within the pathname.

The _external_data feature in Copier allows templates to specify paths for loading external YAML data files. The vulnerable code did not validate whether the specified path remained within the subproject's root directory. This meant an attacker-controlled template could specify paths using traversal sequences (e.g., ../) to access files outside the intended directory scope.

The vulnerability requires user interaction (opening or processing a malicious template), and the attack is executed locally. While the vulnerability does not allow for modification of files or denial of service, it enables unauthorized read access to sensitive information, which could include credentials stored in YAML configuration files.

Root Cause

The root cause lies in the lack of path validation in the _external_data feature. The original implementation would render and use user-supplied paths directly to load YAML files without checking whether the resolved path remained within the subproject's local path boundary. This allowed path traversal attacks where malicious templates could escape the intended directory and read arbitrary YAML-parseable files on the system.

Attack Vector

An attacker must craft a malicious Copier template that specifies crafted path values in the _external_data configuration. When a victim uses this template (either by cloning from an untrusted source or receiving it through other means), Copier would process the template and load YAML files from attacker-specified locations. The contents of these files would then be exposed in the rendered template output, allowing the attacker to exfiltrate sensitive data.

The attack scenario requires:

  1. A victim to use an untrusted template
  2. The target files to be YAML-parseable
  3. The files to be readable by the user running Copier

The security patch introduces proper path validation by checking if the resolved path is relative to the subproject's local path. If the path is outside this boundary and the --trust flag is not explicitly set, a ForbiddenPathError is raised:

python
        def _load_external_data(path: str) -> Any:
            if (
                not (
                    (self.dst_path / (path := _render(path)))
                    .resolve()
                    .is_relative_to(self.subproject.local_abspath)
                )
                and not self.unsafe
            ):
                raise ForbiddenPathError(
                    path=Path(path),
                    hint=(
                        "If you trust this path, you can override the check:\n"
                        "  - CLI: `--trust`/`--UNSAFE`\n"
                        "  - API: `trust=True`"
                    ),
                )
            return load_answersfile_data(self.dst_path, path, warn_on_missing=True)

Source: GitHub Commit Changes

Detection Methods for CVE-2026-34730

Indicators of Compromise

  • Unexpected file read operations during template rendering, particularly accessing paths outside the template directory
  • Template configurations containing suspicious path traversal sequences (e.g., ../, absolute paths)
  • Presence of untrusted or unknown templates in the Copier workspace

Detection Strategies

  • Review template sources before use and verify they come from trusted repositories
  • Monitor file access patterns during Copier operations for reads outside the expected subproject directory
  • Implement file integrity monitoring on sensitive YAML configuration files

Monitoring Recommendations

  • Enable verbose logging when running Copier to capture file access attempts
  • Use endpoint detection tools to monitor for unusual file read patterns by Python processes
  • Audit template repositories for malicious path specifications in _external_data configurations

How to Mitigate CVE-2026-34730

Immediate Actions Required

  • Upgrade Copier to version 9.14.1 or later immediately
  • Audit any templates from untrusted sources before use
  • Review rendered output for any unexpected data exposure
  • Do not use the --trust or --UNSAFE flags unless you fully trust the template source

Patch Information

The vulnerability has been patched in Copier version 9.14.1. The fix introduces path validation that ensures _external_data paths are relative to the subproject root directory. Paths outside this boundary now require explicit trust confirmation via the --trust CLI flag or trust=True API parameter.

For detailed patch information, see:

  • GitHub Release v9.14.1
  • GitHub Security Advisory GHSA-hgjq-p8cr-gg4h
  • GitHub Commit Changes

Workarounds

  • Only use templates from trusted, verified sources until you can upgrade
  • Run Copier in a sandboxed or containerized environment with limited filesystem access
  • Remove or restrict access to sensitive YAML files that could be targeted by malicious templates
  • Implement filesystem access controls to limit what files the user running Copier can read
bash
# Upgrade Copier to the patched version
pip install --upgrade copier>=9.14.1

# Verify installed version
copier --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechCopier

  • SeverityMEDIUM

  • CVSS Score5.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v9.14.1

  • GitHub Security Advisory GHSA-hgjq-p8cr-gg4h
  • Related CVEs
  • CVE-2026-34726: Copier Path Traversal Vulnerability

  • CVE-2026-23986: Copier Path Traversal Vulnerability

  • CVE-2026-23968: Copier Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English