3.6low
copyparty renders unsanitized filenames as HTML when user uploads empty files
- Severity
- 3.6low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.62% (higher than 44% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m2jw-cj8v-937rPYSEC-2026-1278
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 9001 copyparty | < 1.16.15, before 1.16.15 | CVE List, NVD |
| copyparty (PyPI) | before 1.16.15 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
A DOM-Based XSS was discovered in copyparty, a portable fileserver. The vulnerability is considered low-risk.
Details
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: 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.
Proof of Concept (POC)
- Create an empty file named
<img src=x onerror="alert(1)"> - Drag-and-drop the file into the browser to initiate an upload
- The
alert(1)is executed
NVD (es)
copyparty, un servidor de archivos portátil, tiene una vulnerabilidad de Cross-Site Scripting basada en DOM en versiones anteriores a la 1.16.15. La vulnerabilidad se considera de bajo riesgo. Al entregarle a alguien un archivo con un nombre malicioso y luego engañarlo para que lo arrastre a la interfaz web de copyparty, un atacante podría ejecutar javascript arbitrario con los mismos privilegios que ese usuario. Por ejemplo, esto podría dar acceso de lectura no deseado a archivos propiedad de ese usuario. El error se activa con la acción de arrastrar y soltar en sí; no es necesario iniciar realmente la carga. El archivo debe estar vacío (cero bytes). Tenga en cuenta que, como servidor web de propósito general, es posible cargar intencionalmente archivos HTML con javascript arbitrario en las etiquetas `
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27145 changed 2025-02-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m2jw-cj8v-937r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-27145 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1278 changed 2026-07-07 | CC-BY-4.0 |