Path Traversal in @tinacms/graphql
@tinacms graphql
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @tinacms/graphql npm |
|
|
Original description
Tina is a headless content management system. Prior to 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. This vulnerability is fixed in 2.1.2.
From the CVE record · GitHub_M