Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @tinacms/graphql
  4. ›
  5. CVE-2026-24125

CVE-2026-24125: @tinacms/graphql has a Path Traversal issue

March 12, 2026

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.

References

  • github.com/advisories/GHSA-2238-xc5r-v9hj
  • github.com/tinacms/tinacms
  • github.com/tinacms/tinacms/security/advisories/GHSA-2238-xc5r-v9hj
  • nvd.nist.gov/vuln/detail/CVE-2026-24125

Code Behaviors & Features

Detect and mitigate CVE-2026-24125 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@tinacms/graphql/CVE-2026-24125.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:32 +0000.