Vulnerabilities/

@tinacms/graphql's Media Endpoints Can Escape the Media Root via Symlinks or Junctions

Severity:
High

Description

@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.

Recommendation

Update the @tinacms/graphql package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@tinacms/graphql
Anything's wrong? Let us know Last updated on April 06, 2026