Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-30974: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in 9001 copyparty

0
Medium
VulnerabilityCVE-2026-30974cvecve-2026-30974cwe-79
Published: Tue Mar 10 2026 (03/10/2026, 17:37:26 UTC)
Source: CVE Database V5
Vendor/Project: 9001
Product: copyparty

Description

Copyparty is a portable file server. Prior to v1.20.11., the nohtml config option, intended to prevent execution of JavaScript in user-uploaded HTML files, did not apply to SVG images. A user with write-permission could upload an SVG containing embedded JavaScript, which would execute in the context of whichever user opens it. This has been fixed in v1.20.11.

AI-Powered Analysis

AILast updated: 03/10/2026, 18:06:08 UTC

Technical Analysis

CVE-2026-30974 is a cross-site scripting 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) files, which can contain embedded JavaScript. An attacker with write permissions on the server can upload a crafted SVG file containing malicious JavaScript code. When another user accesses or opens this SVG file via the copyparty interface, the embedded script executes in the context of the victim's browser session. This can lead to unauthorized actions such as session hijacking, data theft, or manipulation of the user interface. The vulnerability requires the attacker to have authenticated write access and relies on user interaction to open the malicious SVG, limiting the attack surface. The flaw was addressed in copyparty version 1.20.11 by extending the 'nohtml' protection to SVG files, effectively neutralizing embedded scripts. No known exploits are reported in the wild as of the publication date. The CVSS v3.1 base score is 4.6 (medium severity), reflecting the limited scope and required conditions for exploitation.

Potential Impact

The primary impact of this vulnerability is the potential execution of malicious JavaScript in the context of users accessing SVG files on vulnerable copyparty servers. This can compromise confidentiality by enabling theft of session tokens or sensitive data accessible in the browser context. Integrity may be affected if the attacker can manipulate the user interface or perform unauthorized actions on behalf of the victim. Availability is not impacted. Since exploitation requires authenticated write access, the threat is limited to environments where users have upload permissions, such as collaborative file sharing setups. Organizations using copyparty to share sensitive files risk exposure of user credentials or unauthorized actions if the vulnerability is exploited. The lack of known active exploits reduces immediate risk but does not eliminate the threat, especially in targeted attacks. Failure to patch may lead to lateral movement or privilege escalation in environments where copyparty is integrated with other systems.

Mitigation Recommendations

1. Upgrade copyparty installations to version 1.20.11 or later, which includes the fix extending 'nohtml' protections to SVG files. 2. Restrict write/upload permissions strictly to trusted and authenticated users to reduce the risk of malicious file uploads. 3. Implement server-side file validation and sanitization to detect and block SVG files containing embedded scripts before they are accepted. 4. Educate users to be cautious when opening SVG files from untrusted sources, even within internal environments. 5. Monitor server logs for unusual upload activity or access patterns indicative of exploitation attempts. 6. Consider deploying Content Security Policy (CSP) headers that restrict script execution contexts to mitigate impact if malicious scripts are served. 7. Regularly audit and review copyparty configurations to ensure security options like 'nohtml' are properly enabled and effective. 8. If possible, isolate copyparty servers in segmented network zones to limit potential lateral movement from compromised accounts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/10/2026, 6:06:08 PM

Last updated: 3/13/2026, 12:01:51 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses