CVE-2026-24125: @tinacms/graphql Path Traversal Vulnerability

@tinacms/graphql Updated 14 Mar 2026

Summary

12/03/2026
Yes i
Moderate
6.3

CVE-2026-24125: @tinacms/graphql has a Path Traversal issue. Affects @tinacms/graphql versions < 2.1.2. Fixed in 2.1.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TinaCMS is an open-source content management system that allows users to create, update, and manage content documents through a user-friendly interface. The @tinacms/graphql package provides GraphQL APIs for these operations, enabling developers to interact with content documents using relative file paths. However, the package is vulnerable to a path traversal issue that can allow unauthorized file access and manipulation.

Vulnerability Detail

The vulnerability arises from the way @tinacms/graphql handles relative file paths during GraphQL mutations. Specifically, the package uses path.join() to combine user-provided paths with the collection path without validating that the resolved path remains within the intended directory. This oversight allows attackers to exploit directory traversal sequences (e.g., ../) to escape the collection root directory. As a result, an authenticated user with document mutation permissions can create, move, delete files, or even create folders outside the designated collection boundaries, leading to potential data exposure or loss.

How To Fix

Minimum fixed version

2.1.2

This is the first release that contains the fix.

npm install @tinacms/graphql@2.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that user permissions are tightly controlled, limiting document mutation permissions to trusted users only. Additionally, implement server-side validation to check that any provided relative paths do not contain directory traversal sequences before processing them.

Conclusion

The @tinacms/graphql package has a significant path traversal vulnerability that can be exploited by authenticated users to manipulate files outside the intended directory. It is crucial to update to the patched version 2.1.2 or later to mitigate this risk. Implementing strict user permissions and server-side validation can also help reduce the potential impact.

See every vulnerability recorded for @tinacms/graphql →

Share this vulnerability

FAQ

The vulnerability is a path traversal issue that allows authenticated users to manipulate file paths and access files outside the intended directory.

Any application using the @tinacms/graphql package versions 2.1.1 and below is potentially affected.

An attacker could create, move, delete files, or create folders outside the collection directory, leading to unauthorized access or data loss.

Yes, exploitation requires authenticated access with document mutation permissions, making it less likely for anonymous users to exploit.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for @tinacms/graphql.

How To Fix

Minimum fixed version

2.1.2

This is the first release that contains the fix.

npm install @tinacms/graphql@2.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback