copyparty vulnerable to reflected cross-site scripting via hc parameter
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.
Summary
### 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>`
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | copyparty (PyPI) | before 1.8.6 | 1.8.6 | Patch available | GHSA-cw7j-v52w-fp5r |
- copyparty (PyPI) Vendor— Affected before 1.8.6 Fixed in 1.8.6 Patch available GHSA-cw7j-v52w-fp5r
Remediation
- Fix · GHSA-cw7j-v52w-fp5r copyparty (PyPI) Fixed in 1.8.6 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-cw7j-v52w-fp5r
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences