{"id":"CVE-2026-29066","aliases":["CVE-2026-29066","GHSA-m48g-4wr2-j2h6"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Read via Disabled Vite Filesystem Restriction in TinaCMS CLI","summary":"Tina is a headless content management system. Prior to 2.1.8, the TinaCMS CLI dev server configures Vite with server.fs.strict: false, which disables Vite's built-in filesystem access restriction. This allows any unauthenticated attacker who can reach the dev server to read arbitrary files on the host system. This vulnerability is fixed in 2.1.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tina is a headless content management system. Prior to 2.1.8, the TinaCMS CLI dev server configures Vite with server.fs.strict: false, which disables Vite's built-in filesystem access restriction. This allows any unauthenticated attacker who can reach the dev server to read arbitrary files on the host system. This vulnerability is fixed in 2.1.8.","source":"cvelist"},{"lang":"en","text":"## Summary\nThe TinaCMS CLI dev server configures Vite with `server.fs.strict: false`, which disables Vite's built-in filesystem access restriction. This allows any unauthenticated attacker who can reach the dev server to read arbitrary files on the host system\n\n## Details\nWhen running `tinacms dev`, the CLI starts a Vite dev server configured in:\n`packages/@tinacms/cli/src/next/vite/index.ts`\n```\nserver: {\n  host: configManager.config?.build?.host ?? false,\n  ...\n  fs: {\n    strict: false, // Disables Vite's filesystem access restriction\n  },\n},\n```\nTinaCMS middleware only intercepts specific route prefixes (/media/*, /graphql, /altair, /searchIndex). Any request to a path outside these routes falls through to Vite's default static file handler, which will serve the file directly from the absolute path on the filesystem.\nAdditionally, the server enables permissive CORS (cors() with no origin restriction), which may further facilitate browser-based exploitation such as DNS rebinding attacks.\n\n## PoC\n\n**Prerequisites**: TinaCMS CLI dev server running (default port 4001).\n\n- Read system files directly:\n```\ncurl http://localhost:4001/etc/passwd\n```\n<img width=\"705\" height=\"332\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6fd0e1c7-a549-40c8-bc81-af9c343f52a0\" />\n\n```\ncurl http://localhost:4001/etc/hostname\n```\n<img width=\"631\" height=\"41\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bd103dc3-d4c3-4774-8007-b55de3fc2a9e\" />\nVite resolves and serves the absolute path directly from the filesystem.\n\n\n## Impact\nAny developer running tinacms dev in an environment where the dev server port is reachable by an attacker. This includes:\n\n- Cloud IDEs (GitHub Codespaces, Gitpod) where ports are automatically forwarded and publicly accessible\n\n- Docker or VM setups with port forwarding configured\n\n- Misconfigured environments binding to 0.0.0.0 via the build.host config option\n\n- Systems targeted via DNS rebinding attacks, leveraging the unrestricted CORS policy\n\n- Local environments with malicious dependencies running on the same machine\n\nAn attacker who can reach port 4001 can:\n\n- Read any file readable by the server process (/etc/passwd, /etc/shadow, SSH private keys)\n\n- Exfiltrate environment variables and secrets via /proc/self/environ\n\n- Access cloud credentials and API keys from configuration files","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tina es un sistema de gestión de contenido headless. Antes de la versión 2.1.8, el servidor de desarrollo CLI de TinaCMS configura Vite con server.fs.strict: false, lo que desactiva la restricción de acceso al sistema de archivos integrada de Vite. Esto permite a cualquier atacante no autenticado que pueda alcanzar el servidor de desarrollo leer archivos arbitrarios en el sistema anfitrión. Esta vulnerabilidad está corregida en la versión 2.1.8.","source":"nvd"}],"published":"2026-03-12T16:57:41.393Z","modified":"2026-06-17T10:29:32.420Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-552"],"affected":[{"ranges":[{"version":"< 2.1.8","status":"affected"}],"vendor":"@tinacms","product":"cli","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.8"}],"ecosystem":"npm","package":"@tinacms/cli","purl":"pkg:npm/%40tinacms/cli","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.1.8"}],"vendor":"ssw","product":"tinacms/cli","cpe":"cpe:2.3:a:ssw:tinacms\\/cli:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-m48g-4wr2-j2h6","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29066","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tinacms/tinacms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-13T16:27:18.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-29066","url":"https://www.cve.org/CVERecord?id=CVE-2026-29066","licence":"CVE Terms of Use","modified":"2026-03-13T16:27:22.344Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m48g-4wr2-j2h6","url":"https://github.com/advisories/GHSA-m48g-4wr2-j2h6","licence":"CC-BY-4.0","modified":"2026-03-14T07:11:20.932Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-29066","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29066","licence":"Public domain","modified":"2026-06-17T10:29:32.420Z"}],"updatedAt":"2026-11-25T22:59:15.834Z","epss":{"score":0.0111,"percentile":0.66858,"date":"2026-12-01T12:00:22.000Z"}}