TinaCMS CLI has Arbitrary File Read via Disabled Vite Filesystem Restriction
Summary
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
Details
When running tinacms dev, the CLI starts a Vite dev server configured in:
packages/@tinacms/cli/src/next/vite/index.ts
server: {
host: configManager.config?.build?.host ?? false,
...
fs: {
strict: false, // Disables Vite's filesystem access restriction
},
},
TinaCMS 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. Additionally, the server enables permissive CORS (cors() with no origin restriction), which may further facilitate browser-based exploitation such as DNS rebinding attacks.
PoC
Prerequisites: TinaCMS CLI dev server running (default port 4001).
- Read system files directly:
curl http://localhost:4001/etc/passwd
curl http://localhost:4001/etc/hostname
Impact
Any developer running tinacms dev in an environment where the dev server port is reachable by an attacker. This includes:
-
Cloud IDEs (GitHub Codespaces, Gitpod) where ports are automatically forwarded and publicly accessible
-
Docker or VM setups with port forwarding configured
-
Misconfigured environments binding to 0.0.0.0 via the build.host config option
-
Systems targeted via DNS rebinding attacks, leveraging the unrestricted CORS policy
-
Local environments with malicious dependencies running on the same machine
An attacker who can reach port 4001 can:
-
Read any file readable by the server process (/etc/passwd, /etc/shadow, SSH private keys)
-
Exfiltrate environment variables and secrets via /proc/self/environ
-
Access cloud credentials and API keys from configuration files
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Paczka npm | @tinacms/cli | < 2.1.8 | 2.1.8 |
Odnośniki
- Wektor CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Słabość (CWE)
CWE-200, CWE-552- Platforma
- npm
- Paczka
@tinacms/cli- Ujawniono
- 12.03.2026
- Aktualizacja
- 11.10.2026 10:22
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-m48g-4wr2-j2h6 - CC BY 4.0
Historia podatności: @tinacms/cli
Wszystkie opisane podatności tej paczki (Paczka npm), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 9
- Pierwsza → ostatnia
- 02.2023 10.2026
- Bez poprawki
- 0
- Wykorzystywana w atakach
- 0
Rozkład istotności
- Krytyczna 1
- Wysoka 6
- Średnia 2
Ujawnienia w latach
- 2023: 1
- 2024: 1
- 2025: 1
- 2026: 6
-
TinaCMS CLI has Arbitrary File Read via Disabled Vite Filesystem Restriction ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.