{"answers":{"affected":"3 open source packages ship an affected version, including copyparty. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27145 exists.","fix":"Upgrade copyparty to 1.16.15 or later.","what":"CVE-2025-27145 is a low-severity cross-site scripting vulnerability in 9001 copyparty, published on 25 Feb 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-27145 and fix it if it is affected.\n\nWhat it is: CVE-2025-27145 is a low-severity cross-site scripting vulnerability in 9001 copyparty, published on 25 Feb 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27145 exists.\n\nAffected packages and fixed versions:\n- copyparty (PyPI): affected all versions; fixed in 1.16.15\n- copyparty (PyPI): affected all versions; fixed in 1.16.15\n- copyparty (PyPI): affected all versions; fixed in 1.16.15\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27145/ (Markdown: https://insights.sbomify.com/CVE-2025-27145/index.md)","id":"CVE-2025-27145","markdown":"https://insights.sbomify.com/CVE-2025-27145/index.md","name":"CVE-2025-27145","record":{"aliases":["GHSA-m2jw-cj8v-937r","PYSEC-2026-1278"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"copyparty file server","requires_auth":"none","summary":"An attacker can execute arbitrary JavaScript via maliciously named empty files during drag-and-drop uploads, potentially reading user files.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"copyparty","vendor":"9001"}],"cvss":{"score":3.6,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-83","name":"Improper Neutralization of Script in Attributes in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"copyparty, a portable file server, has a DOM-based cross-site scripting vulnerability in versions prior to 1.16.15. The vulnerability is considered low-risk. By handing someone a maliciously-named file, and then tricking them into dragging the file into copyparty's Web-UI, an attacker could execute arbitrary javascript with the same privileges as that user. For example, this could give unintended read-access to files owned by that user. The bug is triggered by the drag-drop action itself; it is not necessary to actually initiate the upload. The file must be empty (zero bytes). Note that, as a general-purpose webserver, it is intentionally possible to upload HTML-files with arbitrary javascript in `\u003cscript\u003e` tags, which will execute when the file is opened. The difference is that this vulnerability would trigger execution of javascript during the act of uploading, and not when the uploaded file was opened. Version 1.16.15 contains a fix.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"copyparty renders unsanitized filenames as HTML when user uploads empty files","id":"CVE-2025-27145","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Matrix IRC Bridge allows IRC command injection to own puppeted user","id":"CVE-2025-27146"},"packages":[{"ecosystem":"PyPI","fixed":["1.16.15"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":null,"source":"GHSA-m2jw-cj8v-937r"},{"ecosystem":"PyPI","fixed":["1.16.15"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":"pkg:pypi/copyparty","source":"GHSA-m2jw-cj8v-937r"},{"ecosystem":"PyPI","fixed":["1.16.15"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":"pkg:pypi/copyparty","source":"PYSEC-2026-1278"}],"prev":{"headline":"Go JOSE's Parsing Vulnerable to Denial of Service","id":"CVE-2025-27144"},"products":["copyparty"],"published":"2025-02-25","related":[{"cvss_score":7.8,"headline":"Cross-site scripting in n/a","id":"CVE-2023-41471","kev_date_added":null,"published":"2025-08-29"},{"cvss_score":7.5,"headline":"Copyparty is vulnerable to Regex Denial of Service (ReDoS) attacks through \"Recent Uploads\" page","id":"CVE-2025-54796","kev_date_added":null,"published":"2025-08-01"},{"cvss_score":7.5,"headline":"Path traversal in copyparty","id":"CVE-2023-37474","kev_date_added":null,"published":"2023-07-14"},{"cvss_score":6.3,"headline":"copyparty Reflected XSS via Filter Parameter","id":"CVE-2025-54589","kev_date_added":null,"published":"2025-07-31"},{"cvss_score":6.3,"headline":"copyparty vulnerable to reflected cross-site scripting via k304 parameter","id":"CVE-2023-38501","kev_date_added":null,"published":"2023-07-25"},{"cvss_score":5.4,"headline":"Copyparty vulnerable to eflected cross-site scripting via setck parameter","id":"CVE-2026-27948","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":5.4,"headline":"copyparty has a DOM-Based XSS vulnerability when displaying multimedia metadata","id":"CVE-2025-54423","kev_date_added":null,"published":"2025-07-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["9001"]},"summary":"An attacker can execute arbitrary JavaScript via maliciously named empty files during drag-and-drop uploads, potentially reading user files.","url":"https://insights.sbomify.com/CVE-2025-27145/"}