Vulnérabilité dans @tinacms/auth (CVE-2026-63506)
Résumé
Vulnérabilité dans @tinacms/auth (CVE-2026-63506). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via GET /api/cloudinary/media. Atténuation : mise à jour vers 1.1.4 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
@tinacms/auth's isAuthorized(req) decides authorization by validating the caller's bearer token against https://identity.tinajs.io/v2/apps/${req.query.clientID}/currentUser, where the clientID comes from the request and is never compared to the site's own configured TinaCloud app id. The function answers "is this token a verified user of whatever app the caller named?" instead of "is this token a verified user of THIS site?"
Any TinaCloud user can create their own free app, get a valid token for it, and send ?clientID= plus Authorization: to a victim self-hosted site. The victim's authorized callback runs const user = await isAuthorized(req); return user && user.verified, which returns true, and the victim authorizes the attacker.
The attacker holds no account on the victim and needs no victim interaction. With the media handlers this grants read, upload, and delete on the victim's media bucket. When the backend uses TinaCloudBackendAuthProvider() (the default the tinacms init wizard generates for TinaCloud auth), it grants full GraphQL read, write, and delete of the victim's content.
Affected code (confirmed at 5a6839f)
packages/@tinacms/auth/src/index.ts:71-88 reads the clientID from the request:
export const isAuthorized = async (req: NextApiRequest) => {
const clientID = req.query.clientID; // attacker-controlled
const token = req.headers.authorization; // attacker-controlled
if (typeof clientID === 'st…
Source: NIST National Vulnerability Database 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-63506 a été découverte dans @tinacms/auth.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /api/cloudinary/media à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.8/10.
Action : mettez à jour @tinacms/auth vers 1.1.4 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « @tinacms/auth CVE-2026-63506 » sur le site de l'éditeur.
CVE-2026-63506 (@tinacms/auth) — CWE-639 / CVSS v3 8.8
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : GET /api/cloudinary/media / POST /api/tina/gql / GET /v2/apps/ / clientID
Correctif : 1.1.4 — 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-639) affecte @tinacms/auth. Les attaquants atteignent le code vulnérable via GET /api/cloudinary/media.
Consultez l'avis de l'éditeur pour les versions affectées de @tinacms/auth. Surface d'attaque : GET /api/cloudinary/media / POST /api/tina/gql / GET /v2/apps/ / clientID.
Gravité : Élevée (CVSS 8.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 1.1.4.
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 /api/cloudinary/media (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver @tinacms/auth.
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/auth' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@tinacms/authを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'GET /api/cloudinary/media' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /api/cloudinary/mediaへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade @tinacms/auth to 1.1.4ステージング環境で 1.1.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against GET /api/cloudinary/media on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com