CVE-2025-54423: copyparty has DOM-Based XSS vulnerability when displaying multimedia metadata
Summary 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. Details Multimedia metadata is rendered in the web-app without sanitization.
Published Jul 28, 2025 · Updated Jul 29, 2025
Affected packages
copyparty
- Ecosystem
- PyPI
- Affected
- <= 1.18.4
- Fixed in
- 1.18.5
- Check
pip show copyparty
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
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.
Details
Multimedia metadata is rendered in the web-app without sanitization. This can be exploited in two ways:
- a user which has the necessary permission for uploading files can upload a song with an artist-name such as ``
- an unauthenticated user can trick another user into clicking a malicious URL, performing this same exploit using an externally-hosted m3u file
The CVE score and PoC is based on the m3u approach, which results in a higher severity.
PoC
- Create a file named
song.m3uwith the following content. Host this file on an attacker-controlled web server.
#EXTM3U
#EXTINF:1,"> - ">
http://example.com/audio.mp3- Craft and share the malicious URL:
http://127.0.0.1:3923/#m3u=https://example.com/song.m3uImpact
Any user that accesses this malicious URL is impacted.
Credited to altperfect.
References
- https://github.com/9001/copyparty/security/advisories/GHSA-9q4r-x2hj-jmvr
- https://github.com/9001/copyparty/commit/895880aeb0be0813ddf732487596633f8f9fc3a6
- https://github.com/9001/copyparty/releases/tag/v1.18.5
- https://nvd.nist.gov/vuln/detail/CVE-2025-54423
- https://github.com/advisories/GHSA-9q4r-x2hj-jmvr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-104102
copyparty FTP: upload outside defined volumes (limited path traversal)
medium5.3Oct 15, 2026CVE-2026-70657
Copyparty vulnerable to file/dirkey confusion
medium4.3Aug 18, 2026CVE-2026-32108
Copyparty ftp/sftp: Sharing a single file did not fully restrict source-folder access
low2.3Mar 12, 2026CVE-2026-32109
Copyparty has unexpected JavaScript execution via crafted URL to folder with `.prologue.html`
low3.7Mar 12, 2026CVE-2026-30974
copyparty: volflag `nohtml` did not block javascript in svg files
medium4.6Mar 10, 2026CVE-2026-27948
Copyparty vulnerable to reflected XSS via setck parameter
medium5.4Feb 26, 2026
