NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
MEDIUM severity

CVE-2026-24125 — @tinacms/graphql

MEDIUM

CVE-2026-24125 is a medium-severity (CVSS 6.3) Path Traversal vulnerability in @tinacms/graphql. A fix is available for @tinacms/graphql — see the affected versions and patch details below.

Path Traversal in @tinacms/graphql

Also known asGHSA-2238-xc5r-v9hj
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-24125.

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk+0.03%
Lower risk than most CVEs39th percentile — riskier than 39% of all scored CVEsHighest risk
0.00%0.32%0.63%0.95%0.4%0.4%0.4%0.5%Jul 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

5other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
@tinacms/graphqlnpm
55Kdownloads / week

Description

Description

TinaCMS allows users to create, update, and delete content documents using relative file paths (relativePath, newRelativePath) via GraphQL mutations. Under certain conditions, these paths are combined with the collection path using path.join() without validating that the resolved path remains within the collection root directory.

Because path.join() does not prevent directory traversal, paths containing ../ sequences can escape the intended directory boundary.

Attack Vectors

  1. File Creation: Create files outside the collection directory

    createDocument(
      collection: "post"
      relativePath: "../../config/malicious.md"
      params: { post: { title: "malicious" } }
    )
    
  2. File Move/Rename: Move existing files outside the collection

    updateDocument(
      collection: "post"
      relativePath: "existing.md"
      params: { relativePath: "../../stolen.md" }
    )
    
  3. File Deletion: Delete files outside the collection

    deleteDocument(
      collection: "post"
      relativePath: "../../important-config.md"
    )
    
  4. Folder Creation: Create folders outside the collection

    createFolder(
      collection: "post"
      relativePath: "../../malicious-folder"
    )
    

Impact

An authenticated user with document mutation permissions can:

  • Create content files outside collection boundaries (subject to schema validation)
  • Move or rename files outside collection boundaries
  • Delete content files outside collection boundaries
  • Read file contents via document retrieval mutations

Mitigating Factors

Several constraints limit the practical impact of this vulnerability:

  1. Schema Validation: Created/updated content must conform to the collection's GraphQL schema. Attackers cannot write arbitrary file content—the params argument is validated against the generated mutation types (e.g., PostMutation).

  2. Authentication Required: Exploitation requires authenticated access with CMS editor permissions. Anonymous users cannot access GraphQL mutations.

  3. Git Tracking: In typical deployments, all file operations are tracked in git (either via GitHub API for Tina Cloud/self-hosted with GitProvider, or local filesystem changes). Malicious changes are visible in version control and can be reverted.

What This Vulnerability Does NOT Allow

  • Writing arbitrary file content (content is schema-validated)
  • Silent/untracked file modifications (changes appear in git)
  • Unauthenticated access

Proof of Concept

See packages/@tinacms/graphql/tests/path-traversal-security/index.test.ts for automated tests demonstrating the vulnerability.

Manual reproduction:

node -e "
const path = require('path');

const collectionPath = 'content/posts';
const maliciousRelativePath = '../../OUTSIDE/poc.md';

const realPath = path.join(collectionPath, maliciousRelativePath);
console.log('Resolved path:', realPath);
// Output: OUTSIDE/poc.md (escaped content/posts)
"

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npm@tinacms/graphqlall versions2.1.2npm install @tinacms/graphql@2.1.2

Affected Products

1 product · 1 configurations
Application
tinacms\/graphqlssw
< 2.1.2
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @tinacms/graphql, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update @tinacms/graphql to 2.1.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-24125 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Frequently Asked Questions

### Description TinaCMS allows users to create, update, and delete content documents using relative file paths (`relativePath`, `newRelativePath`) via GraphQL mutations. Under certain conditions, these paths are combined with the collection path using `path.join()` without validating that the resolved path remains within the collection root directory. Because `path.join()` does not prevent directory traversal, paths containing `../` sequences can escape the intended directory boundary. ### Attack Vectors 1. **File Creation**: Create files outside the collection directory ```graphql c
O3 Security · Impact-Aware SCA

Is CVE-2026-24125 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2026-24125: @tinacms/graphql — Fixed in 2.1.2