KeygraphLabs · CVE MCP

CVE-2026-34603 · GitHub_M

@tinacms/graphql's Media Endpoints Can Escape the Media Root via Symlinks or Junctions

Tina is a headless content management system. Prior to version 2.2.2, @tinacms/cli recently added lexical path-traversal checks to the dev media routes, but the implementation still validates only the path string and does not resolve symlink or junction targets. If a link already exists under the media root, Tina accepts a path like pivot/written-from-media.txt as "inside" the media directory and then performs real filesystem operations through that link target. This allows out-of-root media listing and write access, and the same root cause also affects delete. This issue has been patched in version 2.2.2.

Published 2026-04-01, last changed 2026-06-17. Weakness: CWE-22, CWE-59.

CVSS
8.3
high, from NVD
EPSS
0.47%
percentile 42.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: @tinacms/graphql 2.2.2 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in tinacms/tinacms by f124eabaca. Functions changed by the fix: resolveRealPath, assertSymlinkWithinBase, resolveWithinBase, resolveStrictlyWithinBase, isHostExposed, stripNativeTrailingSlash, assertPathWithinBase, assertWithinBase. Regression tests: packages/@tinacms/cli/src/next/commands/dev-command/server/media.test.ts, packages/@tinacms/cli/src/server/models/media.test.ts, packages/@tinacms/cli/src/utils/host.test.ts, packages/@tinacms/cli/src/utils/path.test.ts. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2026-04-01Published
2026-04-01Package advisory GHSA-g87c-r2jp-293w
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.53%
2026-12-05Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-g87c-r2jp-293w@tinacms/graphql (npm)2.2.2

Also known as: GHSA-g87c-r2jp-293w

Related

CVEPublishedCVSSSummary
CVE-2026-1298612026-11-166@tinacms/graphql 2.2.2 through 4.1.0 Path Traversal via Dangling Symlink in FilesystemBridge.put
CVE-2026-346042026-04-018.8@tinacms/graphql's `FilesystemBridge` Path Validation Can Be Bypassed via Symlinks or Junctions
CVE-2026-339492026-04-018.1@tinacms/graphql has Path Traversal that leads to overwrite of arbitrary files
CVE-2026-241252026-03-126.3Path Traversal in @tinacms/graphql
CVE-2025-682782025-12-188.8tinacms vulnerable to arbitrary code execution
CVE-2026-775262026-12-049.9FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbitrary file write outside MyFiles/ leading to RCE
CVE-2026-456932026-12-047.5FacturaScripts: Unauthenticated Path Traversal in Static File Controllers Reads Private MyFiles Documents
CVE-2026-773062026-12-044.8go-witness: File attestor follows symlinks outside the base path and records out-of-tree files

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2026-34603, or call /api/v1/vulnerabilities/CVE-2026-34603. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org