CVE-2026-63123
### Summary A browser-based cross-origin request flaw in the Tina dev server allows an attacker-controlled website to cause arbitrary file creation inside the configured media upload directory on a developer machine running `tinacms dev`. No manual file upload is required. The attacker page builds the multipart request in JavaScript and sends it directly to the local Tina server. The browser blocks access to the response because of CORS, but the server still processes the request and writes the file. ### Details The issue is in the dev server path of `@tinacms/cli`. The Vite dev server installs CORS middleware: ```ts // packages/@tinacms/cli/src/next/vite/plugins.ts server.middlewares.use( cors({ origin: corsOriginCheck, methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'], }) ); ``` For disallowed origins, the origin callback only returns `false` to the CORS library: ```ts // packages/@tinacms/cli/src/next/vite/cors.ts return (origin, callback) => { ... callback(null, false); }; ``` That does not reject the request server-side. The same request is still routed into the upload handler: ```ts // packages/@tinacms/cli/src/next/vite/plugins.ts if (req.url.startsWith('/media/upload')) { await mediaRouter.handlePost(req, res); return; } ``` The upload handler then accepts attacker-controlled path and body data and writes the file: ```ts // packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts bb.on('file', async (_name, file, _info) => { const fullPath = decodeURIComponent( req.url?.slice('/media/upload/'.length) ); const saveTo = resolveStrictlyWithinBase(fullPath, mediaFolder); await fs.ensureDir(path.dirname(saveTo)); file.pipe(fs.createWriteStream(saveTo)); }); ``` This is exploitable because `multipart/form-data` is a simple browser request and does not require a preflight. CORS only prevents the attacking page from reading the response; it does not stop the local Tina server from processing the state-c
Properties
- ghsa_id
- GHSA-rgr9-r7mj-mf6x
- severity
- medium
- summary
- Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
- cvss_score
- 6.5
- cve_id
- CVE-2026-63123
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- is_ghsa_only
- false
- ghsa_published
- 2026-08-19T21:56:36Z
- source_url
- https://github.com/advisories/GHSA-rgr9-r7mj-mf6x
- ghsa_updated
- 2026-08-19T21:56:37Z
Related Entities (4)
VULNERABLE_TO (1)
AFFECTS (1)
HAS_WEAKNESS (1)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph