copyparty vulnerable to reflected cross-site scripting via hc parameter
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.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | copyparty | < 1.8.6 | 1.8.6 |
References
- 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.
- 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
- 2023: 3
- 2024: 0
- 2025: 6
- 2026: 5
-
copyparty vulnerable to reflected cross-site scripting via hc parameter this entry
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.