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-30974

CVE-2026-30974: Copyparty SVG XSS Vulnerability

CVE-2026-30974 is an XSS flaw in Copyparty file server affecting SVG uploads with embedded JavaScript. Attackers with write permissions can exploit this to execute code. This article covers technical details, affected versions, and patches.

Published: March 13, 2026

CVE-2026-30974 Overview

CVE-2026-30974 is a Cross-Site Scripting (XSS) vulnerability in Copyparty, a portable file server application. Prior to version v1.20.11, the nohtml configuration option, which was intended to prevent execution of JavaScript in user-uploaded HTML files, did not properly apply to SVG images. This oversight allows a user with write-permission to upload an SVG file containing embedded JavaScript, which would then execute in the browser context of any user who opens the malicious file.

Critical Impact

Authenticated attackers with write permissions can achieve stored XSS by uploading malicious SVG files, potentially leading to session hijacking, credential theft, or further compromise of users who view the uploaded content.

Affected Products

  • Copyparty versions prior to v1.20.11
  • Copyparty file server deployments with write permissions enabled for users
  • Environments where the nohtml configuration was relied upon for XSS protection

Discovery Timeline

  • 2026-03-10 - CVE-2026-30974 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-30974

Vulnerability Analysis

This vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw exists in how Copyparty handles SVG file uploads in relation to its nohtml security configuration.

SVG (Scalable Vector Graphics) files are XML-based image formats that can contain embedded JavaScript code within <script> tags or event handlers. While Copyparty's nohtml option was designed to neutralize JavaScript execution in HTML files, the same sanitization logic was not applied to SVG uploads. This creates an attack surface where authenticated users with write permissions can bypass the intended security controls.

The vulnerability requires user interaction (the victim must open the malicious SVG file) and low-privileged access (write permission to upload files). When exploited, the attacker's JavaScript executes within the victim's browser session, potentially enabling session token theft, unauthorized actions on behalf of the victim, or phishing attacks.

Root Cause

The root cause of this vulnerability stems from incomplete input validation in the file upload handling mechanism. The nohtml configuration parameter was implemented to sanitize HTML files but failed to account for SVG files, which are a valid vector for JavaScript execution in modern browsers. The security control treated SVG images as safe static content rather than potentially executable documents.

Attack Vector

The attack requires network access and a low-privileged authenticated account with write permissions to the Copyparty file server. The attacker uploads a specially crafted SVG file containing malicious JavaScript. When another user (including administrators) views or opens this SVG file through their browser, the embedded script executes in their browser context, potentially compromising their session or credentials.

The fix implemented in v1.20.11 addresses this by adding the X-Content-Type-Options: nosniff header to prevent MIME-type sniffing attacks and properly handling SVG files within the nohtml context:

python
oh = "X-Content-Type-Options: nosniff\r\n"
if self.args.http_vary:
    oh += "Vary: %s\r\n" % (self.args.http_vary,)
self._vf0b = {
    "oh_g": oh + "\r\n",
    "oh_f": oh + "\r\n",
    "cachectl": self.args.cachectl,
    "tcolor": self.args.tcolor,
    "du_iwho": self.args.du_iwho,

Source: GitHub Commit

Detection Methods for CVE-2026-30974

Indicators of Compromise

  • Presence of SVG files containing <script> tags or JavaScript event handlers (e.g., onload, onclick) in upload directories
  • Suspicious SVG uploads from users who typically do not upload image content
  • Web server logs showing requests for SVG files followed by unusual user activity or session anomalies
  • Browser-side security tool alerts triggered when opening SVG files from the Copyparty server

Detection Strategies

  • Implement file content scanning on upload to detect SVG files containing JavaScript elements such as <script>, <handler>, or inline event attributes
  • Monitor web application firewall (WAF) logs for requests serving SVG content with suspicious embedded code patterns
  • Deploy endpoint detection to identify browser-based script execution originating from uploaded file contexts
  • Review server access logs for patterns of SVG file uploads followed by multiple users accessing the same file

Monitoring Recommendations

  • Enable verbose logging for file upload operations in Copyparty to track SVG uploads with metadata about the uploading user
  • Configure security information and event management (SIEM) rules to alert on SVG file uploads containing potential script content
  • Implement browser Content Security Policy (CSP) headers to restrict script execution from uploaded content directories
  • Regularly audit uploaded files for potential malicious content using automated scanning tools

How to Mitigate CVE-2026-30974

Immediate Actions Required

  • Upgrade Copyparty to version v1.20.11 or later immediately to remediate this vulnerability
  • Audit existing uploaded SVG files for embedded JavaScript content and remove or quarantine suspicious files
  • Review user accounts with write permissions and apply the principle of least privilege
  • Consider temporarily restricting SVG file uploads until the patch is applied

Patch Information

The vulnerability has been fixed in Copyparty version v1.20.11. The patch adds proper X-Content-Type-Options: nosniff headers and extends the nohtml configuration to properly handle SVG files. Detailed information is available in the GitHub Security Advisory GHSA-m6hv-x64c-27mm and the release notes for v1.20.11.

Workarounds

  • Disable SVG file uploads entirely by configuring file type restrictions until the patch can be applied
  • Implement a reverse proxy or WAF rule to strip or block SVG files containing script elements
  • Configure Content-Disposition headers to force SVG downloads rather than inline rendering
  • Restrict write permissions to trusted users only during the vulnerability window
bash
# Example: Configure nginx to force download of SVG files (temporary workaround)
location ~* \.svg$ {
    add_header Content-Disposition "attachment";
    add_header X-Content-Type-Options "nosniff";
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCopyparty

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.03%

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

  • GitHub Release v1.20.11

  • GitHub Security Advisory GHSA-m6hv-x64c-27mm
  • Related CVEs
  • CVE-2026-32109: Copyparty File Server XSS Vulnerability

  • CVE-2026-27948: Copyparty XSS Vulnerability

  • CVE-2026-32108: Copyparty Information Disclosure 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