Advisory

PYSEC-2026-1276

Also known as: CVE-2025-54589, GHSA-8mx2-rjh8-q3jq

Summary

copyparty Reflected XSS via Filter Parameter

Details

Summary
Unauthorized reflected Cross-Site-Scripting when accessing the URL for recent uploads with the filter parameter containing JavaScript code.

Details
When accessing the recent uploads page at /?ru, users can filter the results using an input field at the top. This field appends a filter parameter to the URL, which reflects its value directly into a <script> block without proper escaping.
This vulnerability allows for reflected Cross-Site Scripting (XSS) and can be exploited against both authenticated and unauthenticated users, enabling unwanted actions in the victims browser.

PoC
A URL like this will execute alert(1):

https://127.0.0.1:3923/?ru&filter=</script><script>alert(1)</script>

Severity

Medium Basis: CVSS v3 score 6.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Dates

Published
2026-07-07 16:02 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

copyparty

PyPI · All systems

Affected

  • introduced 0, fixed 1.18.7 (ecosystem)

Fixed versions

1.18.7

Fix

  • Fixed version 1.18.7
    pip install --upgrade copyparty==1.18.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences