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

CVE-2026-108261: Admin Preview Cross-Origin Bypass and GraphQL Hijacking in TinaCMS

Alon Barad
Alon Barad
Software Engineer

Oct 10, 2026·5 min read·16 visits

Executive Summary (TL;DR)

TinaCMS admin preview dynamically loaded external origins from hash routing parameters and trusted postMessage traffic from those origins, allowing remote attackers to run arbitrary GraphQL operations on behalf of logged-in editors.

A critical origin validation flaw in TinaCMS admin preview allows unauthenticated attackers to bypass cross-origin postMessage checks and execute unauthorized GraphQL queries and mutations under an authenticated editor's context.

Vulnerability Overview

TinaCMS is an open-source headless Content Management System (CMS) that integrates real-time editing and content management features directly into React applications. A security flaw identified as CVE-2026-108261 exists in the admin preview routing interface of TinaCMS packages tinacms and @tinacms/app.

The vulnerability stems from insufficient validation of client-side routing parameters when constructing the embedded preview frame. When rendering the admin interface, the application extracts path information from the URL hash fragment and injects it into an <iframe> element intended to preview published or drafted content.

By crafting the hash fragment in a link, an unauthenticated remote attacker can force the host application to load an external, attacker-controlled origin into the preview frame while simultaneously trusting cross-origin postMessage requests from that frame.

Root Cause Analysis

The root cause of CVE-2026-108261 lies in two distinct implementation flaws: unsafe routing parameter prepending and dynamic self-referential origin determination for postMessage security.

In packages/tinacms/src/admin/index.tsx, the admin preview route uses React Router's splat parameter (params['*']) to set the source URL for the preview frame. The application originally initialized this source URL by prepending a single forward slash to the splat parameter: /${params['*']}. When an attacker provides leading slashes or backslashes in the hash fragment (such as #/~//attacker.com), string concatenation converts the relative path into a protocol-relative absolute URL (//attacker.com).

Simultaneously, packages/@tinacms/app/src/lib/preview-origin.ts implemented getExpectedPreviewOrigin, which extracted the expected postMessage origin directly from the iframe URL itself. When the iframe source was set to //attacker.com, new URL('//attacker.com', baseOrigin).origin resolved to https://attacker.com. As a result, the admin GraphQL reducer set its expected communication origin to https://attacker.com, accepting arbitrary administrative GraphQL read and write requests initiated by the external page.

Code Analysis & Patch Mechanics

To remediate the vulnerability, commit b57dbf4b56201aef15cd92caa49fd12ab96bbecf refactored origin determination and added strict path resolution checks.

In @tinacms/app, getExpectedPreviewOrigin was removed and replaced with getPreviewOrigin(), enforcing that the expected frame origin strictly matches window.location.origin without inspecting the target iframe URL:

// packages/@tinacms/app/src/lib/preview-origin.ts
// Patched implementation enforcing static origin trust
export const getPreviewOrigin = (): string =>
  typeof window !== 'undefined' ? window.location.origin : '';

In packages/tinacms/src/admin/preview-url.ts, the developer implemented resolvePreviewPath to perform double-pass resolution validation using native URL objects. This prevents protocol-relative bypasses, backslashes, leading tabs, and path traversal tricks:

// packages/tinacms/src/admin/preview-url.ts
export function resolvePreviewPath(
  splat: string | undefined,
  baseOrigin: string = typeof window !== 'undefined' ? window.location.origin : ''
): { path: string; offOrigin: boolean } {
  if (!baseOrigin || !splat) {
    return { path: '/', offOrigin: false };
  }
  try {
    const resolved = new URL(`/${splat}`, baseOrigin);
    if (resolved.origin !== baseOrigin) {
      return { path: '/', offOrigin: true };
    }
    const path = `${resolved.pathname}${resolved.search}${resolved.hash}`;
    // Second pass catches path normalization tricks like ..//
    if (new URL(path, baseOrigin).origin !== baseOrigin) {
      return { path: '/', offOrigin: true };
    }
    return { path, offOrigin: false };
  } catch {
    return { path: '/', offOrigin: true };
  }
}

Exploitation Methodology

Exploitation requires an unauthenticated attacker to distribute a malicious link to an authenticated CMS editor. The link targets the host application's admin route with a protocol-relative URL in the hash parameter.

When the authenticated victim navigates to https://admin.example.com/#/~//attacker.com, the React Router splat parameter captures //attacker.com. The unpatched code sets the iframe src to //attacker.com, forcing the victim's browser to load the attacker's web page inside the TinaCMS admin interface.

The attacker's hosted page sends cross-window messages via window.parent.postMessage(). Because getExpectedPreviewOrigin dynamically adopted https://attacker.com as its expected origin, the parent window's GraphQL message handler accepts the incoming payload and executes arbitrary queries or mutations using the editor's active session context.

Impact & Risk Assessment

CVE-2026-108261 carries a CVSS v3.1 score of 9.3 (Critical) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N. The primary security scope change occurs because an external cross-origin iframe is granted administrative access to the primary host application's GraphQL communication channel.

Successful exploitation allows the attacker to read, modify, or delete any content managed by the CMS instance. The attacker can execute arbitrary GraphQL mutations to alter site structure, inject malicious code into published posts, or extract confidential operational data.

While the attack requires user interaction (a logged-in editor clicking a link), it requires zero initial privileges on the CMS. No direct system infrastructure denial of service is accomplished through this specific vulnerability.

Remediation Guidance

To eliminate the vulnerability, organizations must update affected npm packages to fixed releases. The patch is available in tinacms version 3.14.0 and @tinacms/app version 2.5.14.

Update dependencies using the appropriate package manager command:

npm install tinacms@3.14.0 @tinacms/app@2.5.14

In addition to updating dependencies, security teams should monitor Web Application Firewall (WAF) or web server access logs for anomalous request patterns in hash fragments, specifically looking for double forward slashes (/#/~//) or backslashes (/#/~/\) within the admin URI paths.

Official Patches

TinaCMSPull request resolving preview origin checking and path resolution logic.
TinaCMSFix commit implementing static window.location.origin checks.

Fix Analysis (1)

Technical Appendix

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

Affected Systems

tinacms npm package prior to 3.14.0@tinacms/app npm package prior to 2.5.14

Affected Versions Detail

Product
Affected Versions
Fixed Version
tinacms
TinaCMS
< 3.14.03.14.0
@tinacms/app
TinaCMS
< 2.5.142.5.14
AttributeDetail
CVE IDCVE-2026-108261
CWE IDCWE-346 (Origin Validation Error)
CVSS v3.19.3 (Critical)
Attack VectorNetwork (Requires User Interaction)
ImpactFull Administrative GraphQL Read/Write Access
Exploit StatusProof of Concept / Public Advisory
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1566.002Spearphishing Link
Initial Access
CWE-346
Origin Validation Error

The software does not properly validate that the source of data or communication is valid.

Known Exploits & Detection

GitHub Security AdvisoryTechnical description of preview URL parameter manipulation and origin validation collapse.

References & Sources

  • [1]GHSA-x34j-47hf-4xg7 Security Advisory
  • [2]NVD Vulnerability Detail - CVE-2026-108261
  • [3]CVE.org Record CVE-2026-108261

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

•about 3 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 4 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 5 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 6 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 7 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 8 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
5 views•10 min read