id: PYSEC-2026-1278 published: "2026-07-07T14:34:50.251716Z" modified: "2026-07-07T17:23:57.865589Z" aliases: - CVE-2025-27145 - GHSA-m2jw-cj8v-937r summary: copyparty renders unsanitized filenames as HTML when user uploads empty files details: "## Summary\n\nA [DOM-Based XSS](https://capec.mitre.org/data/definitions/588.html) was discovered in [copyparty](https://github.com/9001/copyparty), a portable fileserver. The vulnerability is considered low-risk.\n\n## Details\n\nBy 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).\n\nNote: As a general-purpose webserver, it is intentionally possible to upload HTML-files with arbitrary javascript in `