CVE-2025-27145 Details
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.
A DOM-based cross-site scripting vulnerability has been identified in Copyparty, a portable file server, in versions prior to 1.16.15. This low-risk vulnerability allows an attacker to execute arbitrary JavaScript in the context of the user by manipulating the filename of an empty file. The attack is carried out by tricking the user into dragging the file into Copyparty's Web UI, which triggers the execution of the JavaScript with the same privileges as the user. This could potentially lead to unauthorized access to files owned by the user. The vulnerability arises from how unsanitized filenames are handled during the file upload process, particularly with empty files.
Users can upgrade to Copyparty version 1.16.15 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/9001/copyparty/commit/438ea6ccb06f39d7cbb4b6ee7ad44606e21a63dd | [email protected] | Patch |
| https://github.com/9001/copyparty/releases/tag/v1.16.15 | [email protected] | Release Notes |
| https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-83 | Improper Neutralization of Script in Attributes in a Web Page | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| 9001 copyparty | < 1.16.15 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 19, 2025 | Initial Analysis | [email protected] |
| Feb 25, 2025 | CVE Modified | CISA-ADP |
| Feb 25, 2025 | New CVE Received | [email protected] |