Loading advisory.
Loading advisory.
@tinacms/graphql has a Path Traversal issue
TinaCMS allows users to create, update, and delete content documents using relative file paths (relativePath, newRelativePath) via GraphQL mutations.
Published 2026-03-12 16:31 UTC · Modified 2026-03-14 06:26 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @tinacms/graphql | npm | < 2.1.2 | 2.1.2 | npm install @tinacms/graphql@2.1.2 |
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.
File Creation: Create files outside the collection directory
createDocument(
collection: "post"
relativePath: "../../config/malicious.md"
params: { post: { title: "malicious" } }
)File Move/Rename: Move existing files outside the collection
updateDocument(
collection: "post"
relativePath: "existing.md"
params: { relativePath: "../../stolen.md" }
)File Deletion: Delete files outside the collection
deleteDocument(
collection: "post"
relativePath: "../../important-config.md"
)Folder Creation: Create folders outside the collection
createFolder(
collection: "post"
relativePath: "../../malicious-folder"
)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
Several constraints limit the practical impact of this vulnerability:
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).
Authentication Required: Exploitation requires authenticated access with CMS editor permissions. Anonymous users cannot access GraphQL mutations.
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.
Writing arbitrary file content (content is schema-validated)
Silent/untracked file modifications (changes appear in git)
Unauthenticated access
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)
"No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.005 | v2026.06.15 |