PYSEC-2026-1276
copyparty Reflected XSS via Filter Parameter
Quick fix
PYSEC-2026-1276 — copyparty: upgrade to the fixed version with the command below.
pip install --upgrade 'copyparty>=1.18.7'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> ```
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/9001/copyparty/security/advisories/GHSA-8mx2-rjh8-q3jq[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-54589[ADVISORY]
- https://github.com/9001/copyparty/commit/a8705e611d05eeb22be5d3d7d9ab5c020fe54c62[WEB]
- https://github.com/9001/copyparty[PACKAGE]
- https://github.com/9001/copyparty/releases/tag/v1.18.7[WEB]
- https://pypi.org/project/copyparty[PACKAGE]
- https://github.com/advisories/GHSA-8mx2-rjh8-q3jq[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/copyparty"]}'