CVE-2025-54423: Copyparty Cross-Site Scripting Vulnerability
MODERATECVE-2025-54423 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Copyparty libraries in the PyPI ecosystem. The issue involves copyparty has dom-based xss vulnerability when displaying multimedia metadata. Remediation is available by upgrading affected packages to version 1.18.5.
CVE-2025-54423 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-54423
To remediate this vulnerability, upgrade all affected Copyparty dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install copyparty>=1.18.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show copyparty
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-54423, inspect your installed packages using pip:
pip show copyparty
Analyze the terminal output to locate any version of Copyparty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.5), your application is affected.
Note: The pip show copyparty command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Copyparty, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-54423 Affected Copyparty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
copyparty
|
PyPI |
< 1.18.5
|
1.18.5
|
References
Frequently Asked Questions
What is CVE-2025-54423?
Which Copyparty versions are affected?
What version fixes CVE-2025-54423?
Is copyparty affected?
What is the CVSS score of CVE-2025-54423?
What CWE is associated with CVE-2025-54423?
How can I check PyPI dependencies for CVE-2025-54423?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9q4r-x2hj-jmvr",
"modified" : "2025-07-29T12:34:32Z",
"published" : "2025-07-28T16:41:44Z",
"aliases" : [ "CVE-2025-54423" ],
"summary" : "copyparty has DOM-Based XSS vulnerability when displaying multimedia metadata",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "copyparty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.18.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/security/advisories/GHSA-9q4r-x2hj-jmvr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54423"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/commit/895880aeb0be0813ddf732487596633f8f9fc3a6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/9001/copyparty"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/releases/tag/v1.18.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-28T16:41:44Z",
"nvd_published_at" : "2025-07-28T20:17:48Z"
}
}