4.6medium
Copyparty volflag `nohtml` did not block javascript in svg files
- Severity
- 4.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 27% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m6hv-x64c-27mmPYSEC-2026-2137
Description
Copyparty is a portable file server. Prior to v1.20.11., the nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images. A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it. This has been fixed in v1.20.11.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 9001 copyparty | < 1.20.11, before 1.20.11 | CVE List, NVD |
| copyparty (PyPI) | before 1.20.11 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Copyparty is a portable file server. Prior to v1.20.11., the nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images. A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it. This has been fixed in v1.20.11.
GitHub Advisory Database
Summary
The nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images.
Details
A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it.
This in itself is not a vulnerability; it is intended behavior according to the SVG spec. The vulnerability is that the nohtml volflag, when enabled, did not prevent this.
nohtml, intended for use on volumes which contains untrusted files, would correctly prevent execution of javascript in HTML files, but did not consider SVG images. This has been fixed in v1.20.11.
Impact
The malicious JavaScript could move or delete existing files on the server, or upload new files, using the account of the person who opens the SVG.
NVD (es)
Copyparty es un servidor de archivos portátil. Antes de la v1.20.11., la opción de configuración nohtml, destinada a evitar la ejecución de JavaScript en archivos HTML subidos por el usuario, no se aplicaba a las imágenes SVG. Un usuario con permiso de escritura podía subir un SVG que contenía JavaScript incrustado, el cual se ejecutaría en el contexto de cualquier usuario que lo abriera. Esto ha sido corregido en la v1.20.11.
References
| https://github.com/9001/copyparty/security/advisories/GHSA-m6hv-x64c-27mm | advisory, vendor-advisory, web | |
| https://github.com/9001/copyparty/commit/1c9f894e149b6be3cc7de81efc93a4ce4766e0e5 | fix, patch, web | |
| https://github.com/9001/copyparty/releases/tag/v1.20.11 | advisory, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-30974 | advisory | |
| https://github.com/9001/copyparty | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-30974 changed 2026-03-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m6hv-x64c-27mm changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-30974 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2137 changed 2026-07-13 | CC-BY-4.0 |