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-24134

Access Denied? Not Quite: Unmasking StudioCMS's Broken Authorization Logic

Amit Schendel
Amit Schendel
Senior Security Researcher

Jan 27, 2026·7 min read·43 visits

Executive Summary (TL;DR)

StudioCMS versions before 0.2.0 fail to check user roles on the dashboard edit route. If you have a valid login (even as a 'Visitor') and a draft's UUID, you can read the content. The fix introduces a middleware-based permission hierarchy.

A classic case of Broken Object Level Authorization (BOLA) in StudioCMS allows low-privileged users to access sensitive, unpublished content drafts. By failing to validate user roles against specific routes, the application treats every authenticated user—even a lowly 'Visitor'—as a trusted editor.

The Hook: All Your Drafts Are Belong To Us

Content Management Systems (CMS) are the digital fortresses of the modern web. They guard the gates between "Work in Progress" and "Public Humiliation." StudioCMS, a promising Astro-native solution, seemed to be building a solid wall around its dashboard. Users were categorized neatly: Owners, Admins, Editors, and Visitors. In theory, a Visitor is exactly what it sounds like—someone who can look but not touch, and certainly not peek behind the curtain at the rough drafts.

But here is the thing about theories: they crumble under the weight of implementation errors. CVE-2026-24134 is the digital equivalent of a security guard checking your ID, seeing you work for the company, and then letting you wander directly into the CEO's office to read their diary. As long as you had a badge—any badge—the system assumed you belonged there.

This isn't just a minor glitch; it is a fundamental breakdown in how the application understands authority. It’s the difference between Authentication ("Who are you?") and Authorization ("What are you allowed to do?"). StudioCMS nailed the first part but completely forgot to ask the second question when it came to editing content.

The Flaw: A Badge is Not a Key

The vulnerability lies deep within the dashboard's routing logic, specifically handling the /dashboard/content-management/edit endpoint. In a secure application, every request to a privileged resource undergoes a rigorous interrogation. The system should check the session, extract the user's role, and cross-reference it with the permissions required for that specific route. If the user wants to edit a draft, they better be an Editor or an Admin.

StudioCMS, however, suffered from Broken Function Level Authorization (BFLA) compounded by Broken Object Level Authorization (BOLA). The application logic verified that a valid auth_session cookie existed. That was it. If you were logged in, the server considered the handshake complete. It didn't verify if the metadata associated with that session (like role: visitor) actually qualified you to invoke the edit function.

Furthermore, the system blindly trusted the edit query parameter. If a user provided a valid UUID for a content draft, the backend fetched it from the database and served it up. It didn't check if the user owned that draft or if the draft was in a state meant for public consumption. This meant that the security mechanism was essentially a UI facade; the buttons were hidden from Visitors, but the API endpoints were wide open to anyone who knew where to look.

The Code: The Smoking Gun

Let's look at the anatomy of this failure. The vulnerable code likely looked something like this (pseudocode based on typical Astro patterns):

// Vulnerable Route Handler
export const GET = async ({ locals, url }) => {
  // CHECK 1: Is the user logged in?
  if (!locals.isLoggedIn) {
    return redirect('/login');
  }
 
  // CHECK 2: Do we have a target?
  const draftId = url.searchParams.get('edit');
  if (draftId) {
    // DANGER: Fetching without checking role!
    const content = await db.getContent(draftId);
    return new Response(render(content));
  }
};

See the gap? There is no if (user.role !== 'EDITOR') check. The fix, introduced in commit efc10bee20db090fdd75463622c30dda390c50ad, completely overhauled this by introducing a centralized authorization map. Instead of checking permissions in every single route handler (which is prone to human error), they moved the logic to the middleware.

Here is the logic behind the fix:

// packages/studiocms/frontend/middleware/_authmap.ts
// Mapping routes to required permission levels
export const authenticatedRoutes = {
  '/dashboard/content-management/edit': 'editor',
  '/dashboard/settings': 'admin',
  // ...
};
 
// packages/studiocms/frontend/middleware/index.ts
// The Guard Dog
if (matches(path, protectedRoute)) {
  const userRank = getUserRank(session.role); // visitor=0, editor=1...
  const requiredRank = getRequiredRank(route);
 
  if (userRank < requiredRank) {
    // ACCESS DENIED
    return redirect('/dashboard/403');
  }
}

This shift from decentralized (and forgotten) checks to a centralized, glob-matching middleware is a textbook example of defense-in-depth. It ensures that even if a developer forgets to check roles in a new endpoint, the middleware will catch it based on the URL pattern.

The Exploit: Walking Through Walls

Exploiting this requires two things: a valid account and a target UUID. Since registration is often open or easily obtained in CMS environments (even as a 'Reader' or 'Visitor'), step one is trivial. Step two—finding the UUID—is where the fun begins. While UUIDs are not enumerable like sequential IDs (1, 2, 3...), they often leak in API responses, network logs, or poorly sanitized frontend state.

Here is the attack chain:

  1. Reconnaissance: The attacker logs in as a low-privilege 'Visitor'. They browse the site, looking for any API calls that return lists of content. Even calls that return published content might leak the UUID structure or related draft IDs in the JSON response.
  2. The Direct Object Reference: Once a candidate UUID is found (or if the attacker simply wants to test a UUID they saw over the shoulder of an admin), they craft the URL manually.
  3. Execution:
    GET /dashboard/content-management/edit?edit=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
    Host: target-studiocms.com
    Cookie: auth_session=valid_visitor_cookie
  4. Payload Delivery: The server processes the request. It sees a valid session. It sees a valid UUID in the database. It returns the HTML for the editor interface, populated with the sensitive draft content.

At this point, the attacker can read confidential press releases, internal notes, or unreleased product data. If the POST handlers suffer from the same lack of checks (which they often do in these scenarios), the attacker might even be able to modify the draft, defacing the site before the content even goes live.

The Impact: Why Should We Panic?

The impact here is High Confidentiality and High Integrity. In a CMS context, 'Draft' status is the only thing protecting sensitive information from the public eye. Companies use drafts to prepare financial statements, embargoed news, and internal policy shifts. A 'Visitor' accessing these is equivalent to a corporate spy sitting in the writer's room.

If the vulnerability extends to write actions (which is implied by the lack of role checks on the edit route), the integrity impact becomes critical. An attacker could inject malicious JavaScript (XSS) into a draft. When an Admin eventually logs in to review and publish that draft, the XSS triggers, potentially stealing the Admin's session token and leading to a full account takeover. This turns a simple information disclosure bug into a full-chain RCE scenario via Admin privilege escalation.

The Fix: Authorization Middleware

The remediation is straightforward but requires a structural update. The StudioCMS team released version 0.2.0, which implements the micromatch library to handle route protection dynamically.

To patch:

  1. Open your package.json.
  2. Update @withstudiocms/sdk, studiocms, and @studiocms/ui to the latest versions (specifically >= 0.2.0).
  3. Rebuild your Astro project.

If you are maintaining a fork or cannot update, you must manually implement middleware in src/middleware.ts. You need to intercept every request to /dashboard, decode the session, and compare the user's role against a hardcoded list of allowed paths. Do not rely on UI hiding; if the route exists on the server, it must be guarded on the server.

Official Patches

StudioCMSOfficial v0.2.0 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected Systems

StudioCMS DashboardContent Management API

Affected Versions Detail

Product
Affected Versions
Fixed Version
studiocms
StudioCMS
< 0.2.00.2.0
@withstudiocms/sdk
StudioCMS
< 0.2.00.2.0
AttributeDetail
CWE IDCWE-285
Attack VectorNetwork
CVSS Score8.1 (High)
Exploit StatusPoC Available
Patch StatusAvailable (v0.2.0)
Privileges RequiredLow (Authenticated)

MITRE ATT&CK Mapping

T1595Active Scanning
Reconnaissance
T1210Exploitation of Remote Services
Lateral Movement
T1087Account Discovery
Discovery
CWE-285
Improper Authorization

The application does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.

Known Exploits & Detection

Internal AnalysisTheoretical PoC based on patch diff analysis

Vulnerability Timeline

Vulnerability identified during refactor
2026-01-18
Fix commit pushed to main branch
2026-01-23
StudioCMS v0.2.0 released
2026-01-27

References & Sources

  • [1]Fix Commit: Middleware Auth Map
  • [2]OWASP API Security Top 10: BOLA

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

•1 day ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

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.

Alon Barad
Alon Barad
6 views•10 min read
•1 day ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

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.

Alon Barad
Alon Barad
11 views•12 min read
•1 day ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

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.

Alon Barad
Alon Barad
6 views•12 min read
•1 day ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

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.

Amit Schendel
Amit Schendel
13 views•10 min read
•1 day ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

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.

Alon Barad
Alon Barad
14 views•10 min read
•1 day ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

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.

Amit Schendel
Amit Schendel
6 views•9 min read