{"id":"CVE-2026-30974","aliases":["CVE-2026-30974","GHSA-m6hv-x64c-27mm","PYSEC-2026-2137"],"related":[],"kind":"vulnerability","state":"published","title":"Copyparty volflag `nohtml` did not block javascript in svg files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `nohtml` config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images.\n\n### Details\nA user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it.\n\nThis in itself is not a vulnerability; it is intended behavior according to [the SVG spec](https://www.w3.org/TR/SVG11/script.html). The vulnerability is that the `nohtml` volflag, when enabled, did not prevent this.\n\n`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.\n\n### Impact\nThe 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-10T01:20:19.000Z","modified":"2026-07-13T07:26:49.106Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.20.11","status":"affected"}],"vendor":"9001","product":"copyparty","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.20.11"}],"ecosystem":"PyPI","package":"copyparty","purl":"pkg:pypi/copyparty","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.20.11"}],"vendor":"9001","product":"copyparty","cpe":"cpe:2.3:a:9001:copyparty:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.20.11"}],"ecosystem":"PyPI","package":"copyparty","purl":"pkg:pypi/copyparty","source":"pysec"}],"references":[{"url":"https://github.com/9001/copyparty/security/advisories/GHSA-m6hv-x64c-27mm","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/9001/copyparty/commit/1c9f894e149b6be3cc7de81efc93a4ce4766e0e5","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/9001/copyparty/releases/tag/v1.20.11","tags":["advisory","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30974","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/9001/copyparty","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-11T14:45:22.362Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30974","url":"https://www.cve.org/CVERecord?id=CVE-2026-30974","licence":"CVE Terms of Use","modified":"2026-03-11T14:45:33.773Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m6hv-x64c-27mm","url":"https://github.com/advisories/GHSA-m6hv-x64c-27mm","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:49.106Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30974","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30974","licence":"Public domain","modified":"2026-06-17T10:33:15.220Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2137","url":"https://osv.dev/vulnerability/PYSEC-2026-2137","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:22.786Z"}],"updatedAt":"2026-11-25T22:59:15.626Z","epss":{"score":0.00409,"percentile":0.26757,"date":"2026-11-30T12:00:22.000Z"}}