Vulnerability library
Security checkApril 06, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@tinacms/graphql

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): <= 2.2.1
  • Patched version(s): 2.2.2

References

Could your website be exposed too?

SmartScanner can check your website for @tinacms/graphql's Media Endpoints Can Escape the Media Root via Symlinks or Junctions and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 06, 2026