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.
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-01 | Published |
| 2026-04-01 | Package advisory GHSA-g87c-r2jp-293w |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.53% |
| 2026-12-05 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-g87c-r2jp-293w | @tinacms/graphql (npm) | 2.2.2 |
Also known as: GHSA-g87c-r2jp-293w
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-129861 | 2026-11-16 | 6 | @tinacms/graphql 2.2.2 through 4.1.0 Path Traversal via Dangling Symlink in FilesystemBridge.put |
| CVE-2026-34604 | 2026-04-01 | 8.8 | @tinacms/graphql's `FilesystemBridge` Path Validation Can Be Bypassed via Symlinks or Junctions |
| CVE-2026-33949 | 2026-04-01 | 8.1 | @tinacms/graphql has Path Traversal that leads to overwrite of arbitrary files |
| CVE-2026-24125 | 2026-03-12 | 6.3 | Path Traversal in @tinacms/graphql |
| CVE-2025-68278 | 2025-12-18 | 8.8 | tinacms vulnerable to arbitrary code execution |
| CVE-2026-77526 | 2026-12-04 | 9.9 | FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbitrary file write outside MyFiles/ leading to RCE |
| CVE-2026-45693 | 2026-12-04 | 7.5 | FacturaScripts: Unauthenticated Path Traversal in Static File Controllers Reads Private MyFiles Documents |
| CVE-2026-77306 | 2026-12-04 | 4.8 | go-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.