copyparty
Affected
- introduced
0, fixed1.18.5(ecosystem)
Fixed versions
1.18.5
Fix
- Fixed version
1.18.5pip install --upgrade copyparty==1.18.5
Advisory
Also known as: CVE-2025-54423, GHSA-9q4r-x2hj-jmvr
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. This can be exploited in two ways:
<img src=x onerror=alert(document.domain)>The CVE score and PoC is based on the m3u approach, which results in a higher severity.
PoC
song.m3u with the following content. Host this file on an attacker-controlled web server. ```m3u
#EXTM3U
#EXTINF:1,"><img src=x onerror=alert(document.domain)> - "><img src=x onerror=alert(document.domain)>
http://example.com/audio.mp3
```
```
http://127.0.0.1:3923/#m3u=https://example.com/song.m3u
```
Impact
Any user that accesses this malicious URL is impacted.
Medium Basis: CVSS v3 score 5.4, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
0, fixed 1.18.5 (ecosystem)1.18.5
1.18.5pip install --upgrade copyparty==1.18.5Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0