• Sources: primary
  • Summary: @tinacms/cli reads the Git branch from VERCEL_GIT_COMMIT_REF, GITHUB_BRANCH or HEAD and interpolates it into the generated client.ts source with no escaping or encoding, so a branch name that git check-ref-format accepts can close the string literal and inject a JavaScript expression that runs when the consumer build imports the generated module. Affected versions are 2.7.0 and earlier, patched in 3.0.0, scored CVSS 8.2 and tracked as CVE-2026-108259. The advisory was published in tinacms/tinacms on 2026-09-16 and published to the GitHub Advisory Database on 2026-10-09, where it was also reviewed and last updated, so this is a four-week-old disclosure carried here for its pattern rather than as same-day news. The practical attack is a pull request against any project using TinaCMS with preview deployments enabled, where the build runs codegen and executes the attacker's expression with full build privileges and access to build environment variables.
  • Why it matters: A Git ref is attacker-controlled input, so interpolating one into generated source or a URL path without JSON.stringify or encodeURIComponent turns every preview build into a code execution sink, well past this one package.