PyPA Advisory Database
PYSEC-2026-3660
Copyparty vulnerable to file/dirkey confusion
Details
A valid filekey could potentially be converted into a dirkey, granting read-access to the containing folder.
This issue only affected volumes which simultaneously enable both filekeys and dirkeys, with volflag dk or dks combined with fk or fka.
Both required features are default-disabled, and must be explicitly enabled in the volflags (the "flags" section of a volume).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | copyparty | All versions before 1.20.17 (fixed in 1.20.17) |
References
- https://github.com/9001/copyparty/security/advisories/GHSA-x5pq-m9p8-f4vx
- https://github.com/9001/copyparty/commit/e40755331ba9449993ff482456e6bdd2c6deb950
- https://github.com/9001/copyparty
- https://github.com/9001/copyparty/releases/tag/v1.20.17
- https://pypi.org/project/copyparty
- https://github.com/advisories/GHSA-x5pq-m9p8-f4vx
- https://nvd.nist.gov/vuln/detail/CVE-2026-70657