GitHub Advisoryadvisory · PyPI
GHSA-8mx2-rjh8-q3jq copyparty Reflected XSS via Filter Parameter
MEDIUM
Official page ↗
- Aliases
- CVE-2025-54589
- Ecosystem
- PyPI
- Packages
- copyparty
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-79
- Reviewed
- 2025-07-31
Affected packages
• PyPI copyparty: < 1.18.7 → fixed in 1.18.7
Description
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 `` 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=alert(1)
```
Related
Alias · CVE (1)
- CVE-2025-54589 Copyparty is a portable file server. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
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