CVE-2026-30974: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in 9001 copyparty
CVE-2026-30974 is a medium-severity cross-site scripting (XSS) vulnerability in copyparty versions prior to 1. 20. 11. The issue arises because the 'nohtml' configuration option, designed to block JavaScript execution in user-uploaded HTML files, did not apply to SVG images. This allows a user with write permissions to upload an SVG containing embedded JavaScript, which executes in the context of any user who opens the SVG file. Exploitation requires user interaction and write permissions but does not require elevated privileges beyond that. The vulnerability impacts confidentiality and integrity but not availability. It has been fixed in version 1. 20. 11.
AI Analysis
Technical Summary
CVE-2026-30974 is a cross-site scripting (XSS) vulnerability classified under CWE-79 affecting the copyparty portable file server software prior to version 1.20.11. Copyparty includes a 'nohtml' configuration option intended to prevent execution of JavaScript embedded in user-uploaded HTML files, thereby mitigating XSS risks. However, this protection did not extend to SVG (Scalable Vector Graphics) images, which can contain embedded JavaScript. An attacker with write permissions on the server can upload a malicious SVG file containing JavaScript code. When another user accesses or opens this SVG file through the copyparty interface, the embedded script executes in their browser context, potentially allowing the attacker to steal session tokens, perform actions on behalf of the user, or manipulate displayed content. The vulnerability requires that the attacker has write permissions (which may be granted to authenticated users) and that the victim interacts with the malicious SVG file. The CVSS v3.1 base score is 4.6 (medium severity), reflecting network attack vector, low attack complexity, privileges required (write permission), and user interaction. The vulnerability affects confidentiality and integrity but does not impact availability. This issue was addressed in copyparty version 1.20.11 by extending the 'nohtml' option protections to SVG files, effectively neutralizing embedded JavaScript execution. No known exploits are reported in the wild at this time.
Potential Impact
The primary impact of this vulnerability is on the confidentiality and integrity of user sessions and data accessed via the copyparty file server. An attacker who can upload malicious SVG files can execute arbitrary JavaScript in the context of other users who open these files, potentially stealing authentication tokens, cookies, or other sensitive information. This could lead to unauthorized actions performed on behalf of victims, data leakage, or manipulation of the user interface. Since exploitation requires write permissions and user interaction, the risk is limited to environments where multiple users have upload rights and access to the same files. Availability is not affected. Organizations using copyparty in shared or multi-user environments, especially where user permissions are not tightly controlled, face increased risk. The medium CVSS score indicates moderate risk but should not be underestimated in sensitive deployments.
Mitigation Recommendations
1. Upgrade copyparty to version 1.20.11 or later, where the vulnerability is fixed by applying the 'nohtml' option to SVG files. 2. Restrict write permissions strictly to trusted users to reduce the risk of malicious SVG uploads. 3. Implement file upload validation to block or sanitize SVG files containing scripts before they are accepted. 4. Educate users to be cautious when opening SVG files from untrusted sources within the file server environment. 5. Consider disabling SVG file support if not required. 6. Monitor server logs for unusual upload activity or access patterns to detect potential exploitation attempts. 7. Employ Content Security Policy (CSP) headers if possible to restrict script execution contexts in browsers accessing the copyparty server. 8. Regularly audit user permissions and uploaded content for suspicious files.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, Netherlands, France, Japan, South Korea, Sweden
CVE-2026-30974: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in 9001 copyparty
Description
CVE-2026-30974 is a medium-severity cross-site scripting (XSS) vulnerability in copyparty versions prior to 1. 20. 11. The issue arises because the 'nohtml' configuration option, designed to block JavaScript execution in user-uploaded HTML files, did not apply to SVG images. This allows a user with write permissions to upload an SVG containing embedded JavaScript, which executes in the context of any user who opens the SVG file. Exploitation requires user interaction and write permissions but does not require elevated privileges beyond that. The vulnerability impacts confidentiality and integrity but not availability. It has been fixed in version 1. 20. 11.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-30974 is a cross-site scripting (XSS) vulnerability classified under CWE-79 affecting the copyparty portable file server software prior to version 1.20.11. Copyparty includes a 'nohtml' configuration option intended to prevent execution of JavaScript embedded in user-uploaded HTML files, thereby mitigating XSS risks. However, this protection did not extend to SVG (Scalable Vector Graphics) images, which can contain embedded JavaScript. An attacker with write permissions on the server can upload a malicious SVG file containing JavaScript code. When another user accesses or opens this SVG file through the copyparty interface, the embedded script executes in their browser context, potentially allowing the attacker to steal session tokens, perform actions on behalf of the user, or manipulate displayed content. The vulnerability requires that the attacker has write permissions (which may be granted to authenticated users) and that the victim interacts with the malicious SVG file. The CVSS v3.1 base score is 4.6 (medium severity), reflecting network attack vector, low attack complexity, privileges required (write permission), and user interaction. The vulnerability affects confidentiality and integrity but does not impact availability. This issue was addressed in copyparty version 1.20.11 by extending the 'nohtml' option protections to SVG files, effectively neutralizing embedded JavaScript execution. No known exploits are reported in the wild at this time.
Potential Impact
The primary impact of this vulnerability is on the confidentiality and integrity of user sessions and data accessed via the copyparty file server. An attacker who can upload malicious SVG files can execute arbitrary JavaScript in the context of other users who open these files, potentially stealing authentication tokens, cookies, or other sensitive information. This could lead to unauthorized actions performed on behalf of victims, data leakage, or manipulation of the user interface. Since exploitation requires write permissions and user interaction, the risk is limited to environments where multiple users have upload rights and access to the same files. Availability is not affected. Organizations using copyparty in shared or multi-user environments, especially where user permissions are not tightly controlled, face increased risk. The medium CVSS score indicates moderate risk but should not be underestimated in sensitive deployments.
Mitigation Recommendations
1. Upgrade copyparty to version 1.20.11 or later, where the vulnerability is fixed by applying the 'nohtml' option to SVG files. 2. Restrict write permissions strictly to trusted users to reduce the risk of malicious SVG uploads. 3. Implement file upload validation to block or sanitize SVG files containing scripts before they are accepted. 4. Educate users to be cautious when opening SVG files from untrusted sources within the file server environment. 5. Consider disabling SVG file support if not required. 6. Monitor server logs for unusual upload activity or access patterns to detect potential exploitation attempts. 7. Employ Content Security Policy (CSP) headers if possible to restrict script execution contexts in browsers accessing the copyparty server. 8. Regularly audit user permissions and uploaded content for suspicious files.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-07T17:53:48.816Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69b059afea502d3aa8817503
Added to database: 3/10/2026, 5:49:35 PM
Last enriched: 3/17/2026, 7:06:10 PM
Last updated: 4/28/2026, 9:24:35 AM
Views: 93
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.