Miggo Logo

CVE-2025-27145: copyparty renders unsanitized filenames as HTML when user uploads empty files

3.6

CVSS Score
3.1

Basic Information

EPSS Score
0.04663%
Published
2/26/2025
Updated
2/26/2025
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
copypartypip< 1.16.151.16.15

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unescaped filename insertion in up2k.js's message construction logic. The GitHub patch shows the addition of esc() calls around bad_files[a][1] and nil_files[a][1] in up2k_init, proving these were the vulnerable points. These locations directly used user-controlled filenames in HTML context without sanitization, enabling DOM XSS when empty files with malicious names were dragged into the UI.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

## Summ*ry * [*OM-**s** XSS](*ttps://**p**.mitr*.or*/**t*/***initions/***.*tml) w*s *is*ov*r** in [*opyp*rty](*ttps://*it*u*.*om/****/*opyp*rty), * port**l* *il*s*rv*r. T** vuln*r**ility is *onsi**r** low-risk. ## **t*ils *y **n*in* som*on* * m*li

Reasoning

T** vuln*r**ility st*ms *rom un*s**p** *il*n*m* ins*rtion in up*k.js's m*ss*** *onstru*tion lo*i*. T** *it*u* p*t** s*ows t** ***ition o* *s*() **lls *roun* ***_*il*s[*][*] *n* nil_*il*s[*][*] in up*k_init, provin* t**s* w*r* t** vuln*r**l* points. T