CVE-2026-30974

Copyparty volflag `nohtml` did not block javascript in svg files

Published Mar 10, 2026 CVSS 3.1 · 4.6 Medium EPSS < 1% KEV · Not listed
Description
Copyparty is a portable file server. Prior to v1.20.11., the nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images. A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it. This has been fixed in v1.20.11.

Analysis

AI-generated

Technical impact

Copyparty is a portable file server that allows users to upload files. In versions prior to 1.20.11, the configuration option intended to block JavaScript in uploaded HTML files—the nohtml flag—did not apply to SVG images. An attacker with write permission can embed JavaScript inside an SVG file; when another user opens that file in a browser, the script runs in the context of that user’s browser. This enables cross‑site scripting that can steal session cookies, credentials, or execute further client‑side attacks.

Affected Systems

The vulnerability affects the Copyparty product from vendor 9001. Any deployment running a version earlier than 1.20.11 is susceptible. Users should verify their installed version and apply the update if below the mentioned threshold.

Risk and Exploitability

The CVSS score of 4.6 denotes moderate severity, while the EPSS score of less than 1 % indicates a low likelihood of exploitation in the wild. Copyparty is not listed in the CISA KEV catalog. The attack requires an authenticated user with write permissions to upload a crafted SVG; once uploaded, the malicious code executes in the victim’s browser, compromising client‑side confidentiality and integrity but not the server itself.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Copyparty to version 1.20.11 or later, which enforces the nohtml flag on SVG uploads
  • Restrict file‑upload permissions so that only trusted users can add new files, reducing the attack surface
  • Monitor SVG uploads for embedded JavaScript or other suspicious content and consider disabling SVG file types temporarily until the patch is applied

Generated by OpenCVE AI on April 16, 2026 at 09:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m6hv-x64c-27mm copyparty: volflag `nohtml` did not block javascript in svg files
History
Type Values Removed Values Added
CPEs cpe:2.3:a:9001:copyparty:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared 9001
9001 copyparty
Vendors & Products 9001
9001 copyparty
Type Values Removed Values Added
Description Copyparty is a portable file server. Prior to v1.20.11., the nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images. A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it. This has been fixed in v1.20.11.
Title Copyparty volflag `nohtml` did not block javascript in svg files
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 11, 2026, 2:45 PM
Reserved
Mar 7, 2026, 5:53 PM
Status
Analyzed
Published
Mar 10, 2026, 6:18 PM
Modified
Jun 17, 2026, 10:33 AM