copyparty renders unsanitized filenames as HTML when user uploads empty files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
copyparty, a portable file server, has a DOM-based cross-site scripting vulnerability in versions prior to 1.16.15. The vulnerability is considered low-risk. By handing someone a maliciously-named file, and then tricking them into dragging the file into copyparty's Web-UI, an attacker could execute arbitrary javascript with the same privileges as that user. For example, this could give unintended read-access to files owned by that user. The bug is triggered by the drag-drop action itself; it is not necessary to actually initiate the upload. The file must be empty (zero bytes). Note that, as a general-purpose webserver, it is intentionally possible to upload HTML-files with arbitrary javascript in `<script>` tags, which will execute when the file is opened. The difference is that this vulnerability would trigger execution of javascript during the act of uploading, and not when the uploaded file was opened. Version 1.16.15 contains a fix.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| 9001 | copyparty | before 1.16.15 | 1.16.15 | Patch available | CNA |
| — | copyparty (PyPI) | before 1.16.15 | 1.16.15 | Patch available | GHSA-m2jw-cj8v-937r |
- copyparty Vendor9001 Affected before 1.16.15 Fixed in 1.16.15 Patch available CNA
- copyparty (PyPI) Vendor— Affected before 1.16.15 Fixed in 1.16.15 Patch available GHSA-m2jw-cj8v-937r
Remediation
- Fix · CNA copyparty (9001) Fixed in 1.16.15
- Fix · GHSA-m2jw-cj8v-937r copyparty (PyPI) Fixed in 1.16.15 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27145
- 2026-10-03 Alias added: GHSA-m2jw-cj8v-937r
References
More 9001 Copyparty vulnerabilities
- TI-2025-34551 Copyparty is vulnerable to Regex Denial of Service (ReDoS) attacks through "Recent Uploads" page CVSS 3.1HIGH 7.5
- TI-2023-19082 Path traversal in copyparty CVSS 3.1HIGH 7.5
- TI-2023-21990 Cross Site Scripting vulnerability in copyparty before 1.9.2 allows a local attacker to… CVSS 3.1HIGH 7.8
- TI-2023-19881 copyparty vulnerable to reflected cross-site scripting via k304 parameter CVSS 3.1MEDIUM 6.3
- TI-2025-34228 copyparty has a DOM-Based XSS vulnerability when displaying multimedia metadata CVSS 3.1MEDIUM 6.1
- TI-2025-34360 copyparty Reflected XSS via Filter Parameter CVSS 3.1MEDIUM 6.3
Sources
- CVE-2025-27145 · CVE Program
- CVE-2025-27145 · NVD
- FIRST EPSS
- GHSA-m2jw-cj8v-937r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences