{"id":"CVE-2025-27145","published":"2025-02-25T01:36:46Z","modified":"2025-02-25T13:59:54Z","title":"copyparty renders unsanitized filenames as HTML when user uploads empty files","vendor":"9001","product":"copyparty","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00469,"percentile":0.41465,"provenance":"source"},"cwes":[{"id":"CWE-83","name":"Improper Neutralization of Script in Attributes in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/9001/copyparty/commit/438ea6ccb06f39d7cbb4b6ee7ad44606e21a63dd","tags":["x_refsource_MISC"]},{"url":"https://github.com/9001/copyparty/releases/tag/v1.16.15","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":8.29},{"name":"CVSS severity","points":2.52}]},"vendorSlug":"9001","affectedVersions":[{"vendor":"9001","product":"copyparty","versions":["< 1.16.15"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T13:59:39.228554Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"copyparty","vulnerableRanges":["<1.16.15"],"patched":["1.16.15"],"from":["GHSA-m2jw-cj8v-937r","PYSEC-2026-1278"],"provenance":"source"}],"summary":{"text":"The flaw is a DOM-based cross-site scripting vulnerability in copyparty, a portable file server, affecting versions prior to 1.16.15, where unsanitized filenames are rendered as HTML in the Web-UI when a user uploads an empty file. An attacker who can supply a maliciously named zero-byte file and get a user to drag it into copyparty's Web-UI could run arbitrary JavaScript with that user's privileges, which could expose files that user can read; the trigger is the drag-drop action itself, so the upload does not need to be completed, and the attacker must induce that user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:05Z"},"euvd":{"id":"EUVD-2025-5073","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-37474","published":"2023-07-14","fixed":"1.8.2","kev":false},{"cve":"CVE-2023-38501","published":"2023-07-25","fixed":"1.8.7","kev":false,"link":{"from":"CVE-2023-38501","to":"CVE-2025-27145","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:copyparty","fromFixed":"1.8.7","toFixed":"1.16.15","daysApart":581}]}},{"cve":"CVE-2025-27145","published":"2025-02-25","fixed":"1.16.15","kev":false},{"cve":"CVE-2025-54423","published":"2025-07-28","fixed":"1.18.5","kev":false,"link":{"from":"CVE-2025-27145","to":"CVE-2025-54423","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:copyparty","fromFixed":"1.16.15","toFixed":"1.18.5","daysApart":153}]}},{"cve":"CVE-2025-54589","published":"2025-07-31","fixed":"1.18.7","kev":false},{"cve":"CVE-2025-54796","published":"2025-08-01","fixed":"1.18.9","kev":false}],"package":"PyPI:copyparty"}}