CVE-2025-27145
copyparty renders unsanitized filenames as HTML when user uploads empty files
Also known as GHSA-m2jw-cj8v-937r, PYSEC-2026-1278
Mitigation
- Upgrade copyparty to 1.16.15 or later.
Who should check
- Projects that depend on PyPI package copyparty (< 1.16.15)
- Anyone running 9001 copyparty < 1.16.15
Vulnerability facts
- Affected
- copyparty < 1.16.15
- Fixed in
- 1.16.15
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 3.6 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.62% chance of exploitation in 30 days (percentile 44, 2026-11-26)
- CWE
- CWE-83, CWE-79
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-27145. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-27145.md Affected: copyparty < 1.16.15 Fixed in: 1.16.15 Steps: 1. Search this machine and project for copyparty (PyPI), 9001 copyparty: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-27145 being exploited?
There is no confirmed exploitation: CVE-2025-27145 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.62% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-27145?
Low: CVSS 3.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-27145?
copyparty < 1.16.15.
Is there a fix for CVE-2025-27145?
Yes. Fixed in 1.16.15. Upgrade copyparty to 1.16.15 or later.
How do I check if I'm affected by CVE-2025-27145?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.