CVE-2023-38501 copyparty vulnerable to reflected cross-site scripting via k304 parameter
Attackers can execute scripts in victim browsers via malicious links, allowing file manipulation or account takeover on copyparty servers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-38501?
CVE-2023-38501 is a medium-severity cross-site scripting vulnerability in 9001 copyparty, published on 25 Jul 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
copyparty is file server software. Prior to version 1.8.7, the application contains a reflected cross-site scripting via URL-parameter `?k304=...` and `?setck=...`. The worst-case outcome of this is being able to move or delete existing files on the server, or upload new files, using the account of the person who clicks the malicious link. It is recommended to change the passwords of one's copyparty accounts, unless one have inspected one's logs and found no trace of attacks. Version 1.8.7 contains a patch for the issue.
Weakness: CWE-79
Which versions are affected by CVE-2023-38501?
3 open source packages ship an affected version, including copyparty. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
copyparty PyPI | All versions | 1.8.7 |
copyparty PyPI | All versions | 1.8.7 |
copyparty PyPI | All versions | 1.8.7 |
Products include 9001 Copyparty.
How do I fix CVE-2023-38501?
Upgrade copyparty to 1.8.7 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-38501 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38501 exists.
Public exploit code: 1 Exploit-DB entry and 1 Nuclei template.
Other vulnerabilities in 9001 copyparty
- CVE-2023-41471 Cross-site scripting in n/a
- CVE-2025-54796 Copyparty is vulnerable to Regex Denial of Service (ReDoS) attacks through "Recent Uploads" page
- CVE-2023-37474 Path traversal in copyparty
- CVE-2025-54589 copyparty Reflected XSS via Filter Parameter
- CVE-2026-27948 Copyparty vulnerable to eflected cross-site scripting via setck parameter
Sources
Also known as GHSA-f54q-j679-p9hh, PYSEC-2023-132.