Medium

copyparty vulnerable to reflected cross-site scripting via hc parameter

  • Disclosed: 21.07.2023
  • Updated: 11.10.2026 12:19

Summary

The application contains a reflected cross-site scripting via URL-parameter ?hc=...

Details

A reflected cross-site scripting (XSS) vulnerability exists in the web interface of the application that could allow an attacker to execute malicious javascript code by tricking users into accessing a malicious link.

The worst-case outcome of this is being able to move or delete existing files on the server, or upload new files, using the account of the person who clicks the malicious link.

It is recommended to change the passwords of your copyparty accounts, unless you have inspected your logs and found no trace of attacks.

Checking for exposure

if copyparty is running behind a reverse proxy, you can check the access-logs for traces of attacks, by grepping for URLs containing ?hc= with < somewhere in its value, for example using the following command:

  • nginx:
    bash
    (gzip -dc access.log*.gz; cat access.log) | sed -r 's/" [0-9]+ .*//' | grep -E '[?&](hc|pw)=.*[<>]'

PoC

  • http://127.0.0.1:3923/?hc="><script>alert(1);</script>
  • http://127.0.0.1:3923/?pw=<script>alert(1);</script>

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) copyparty < 1.8.6 1.8.6

References

CVSS score 6.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-79
Platform
Python (PyPI)
Package
copyparty
Disclosed
21.07.2023
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - GHSA-cw7j-v52w-fp5r - CC BY 4.0

Vulnerability history: copyparty

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (14) in the archive
Total entries
14
First → latest
07.2023 08.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 3
  • Medium 8
  • Low 3

Disclosures per year

  1. 2023: 3
  2. 2024: 0
  3. 2025: 6
  4. 2026: 5
Severity:
  1. copyparty vulnerable to reflected cross-site scripting via hc parameter this entry
    Medium · 6.3 ghsa-cw7j-v52w-fp5r < 1.8.6 1.8.6
  2. High · 7.5 CVE-2023-37474 < 1.8.2 1.8.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.