v1.16.15

9001/copypartyv1.16.15Feb 25, 2025by 9001

AI Summary

Fixes a low-severity XSS vulnerability allowing arbitrary JavaScript execution via malicious filenames.

Key Highlights

  • Fixes CVE-2025-27145 allowing JS injection via filename.
  • Fixes related upload error handling issues.

New Features

  • Security fix for XSS vulnerability (GHSA-m2jw-cj8v-937r)

Full Release Notes

<img src="https://github.com/9001/copyparty/raw/hovudstraum/docs/logo.svg" width="250" align="right"/>

* read-only demo server at https://a.ocv.me/pub/demo/
* [docker image](https://github.com/9001/copyparty/tree/hovudstraum/scripts/docker) ╱ [similar software](https://github.com/9001/copyparty/blob/hovudstraum/docs/versus.md) ╱ [client testbed](https://cd.ocv.me/b/)

## ⚠️ this fixes a minor vulnerability; CVE-score `3.6`/`10`

[GHSA-m2jw-cj8v-937r](https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r) aka [CVE-2025-27145](https://www.cve.org/CVERecord?id=CVE-2025-27145) could let an attacker run arbitrary javascript by tricking an authenticated user into uploading files with malicious filenames

* ...but it required some clever social engineering, and is **not likely** to be a cause for concern... ah, better safe than sorry

there is a [discord server](https://discord.gg/25J8CdTT6G) with an `@everyone` in case of future important updates, such as [vulnerabilities](https://github.com/9001/copyparty/security) (most recently 2025-02-25)

## recent important news

* [v1.15.0 (2024-09-08)](https://github.com/9001/copyparty/releases/tag/v1.15.0) changed upload deduplication to be default-disabled
* [v1.14.3 (2024-08-30)](https://github.com/9001/copyparty/releases/tag/v1.14.3) fixed a bug that was introduced in v1.13.8 (2024-08-13); this bug could lead to **data loss** -- see the v1.14.3 release-notes for details

## 🧪 new features

* nothing this time

## 🩹 bugfixes

* fix [GHSA-m2jw-cj8v-937r](https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r) / [CVE-2025-27145](https://www.cve.org/CVERecord?id=CVE-2025-27145) in 438ea6cc
  * when trying to upload an empty files by dragging it into the browser, the filename would be rendered as HTML, allowing javascript injection if the filename was malicious
  * issue discovered and reported by @JayPatel48 (thx!)
* related issues in errorhandling of uploads 499ae1c7 36866f1d
  * these all had the same consequences as the GHSA above, but a network outage was necessary to trigger them
    * which would probably have the lucky side-effect of blocking the javascript download, nice
* paranoid fixing of probably-not-even-issues 3adbb2ff
* fix some markdown / texteditor bugs 407531bc
  * only indicate file-versions for markdown files in listings, since it's tricky to edit non-textfiles otherwise
  * CTRL-C followed by CTRL-V and CTRL-Z in a single-line file would make a character fall off
  * ensure safety of extensions

## 🔧 other changes

* readme:
  * mention support for running the server on risc-v 6d102fc8
  * mention that the [sony psp](https://github.com/user-attachments/assets/9d21f020-1110-4652-abeb-6fc09c533d4f) can browse and upload 598a29a7

----

## ⚠️ not the [latest version](https://github.com/9001/copyparty/releases/latest/)!