Contournement d'authentification dans github.com/nhost/nhost (CVE-2026-41574)
Résumé
Contournement d'authentification dans github.com/nhost/nhost (CVE-2026-41574). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via GET /users/. Atténuation : mise à jour vers 0.0.0-20260417112436-ec8dab3f2cf4 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Nhost is an open source Firebase alternative with GraphQL. Prior to version 0.49.1, Nhost automatically links an incoming OAuth identity to an existing Nhost account when the email addresses match. This is only safe when the email has been verified by the OAuth provider. Nhost's controller trusts a profile.EmailVerified boolean that is set by each provider adapter. The vulnerability is that several provider adapters do not correctly populate this field they either silently drop a verified field the provider API actually returns (Discord), or they fall back to accepting unconfirmed emails and marking them as verified (Bitbucket). Two Microsoft providers (AzureAD, EntraID) derive the email from non-ownership-proving fields like the user principal name, then mark it verified. The result is that an attacker can present an email they don't own to Nhost, have the OAuth identity merged into the victim's account, and receive a full authenticated session. This issue has been patched in version 0.49.1.
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-41574 a été découverte dans github.com/nhost/nhost.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /users/ à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 9.8/10.
Action : mettez à jour github.com/nhost/nhost vers 0.0.0-20260417112436-ec8dab3f2cf4 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/nhost/nhost CVE-2026-41574 » sur le site de l'éditeur.
CVE-2026-41574 (github.com/nhost/nhost) — CWE-287 / CVSS v3 9.8
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : GET /users/ / GET /api/v4/user / profile.EmailVerified / verified
Correctif : 0.0.0-20260417112436-ec8dab3f2cf4 — 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 contournement d'authentification (CWE-287) affecte github.com/nhost/nhost. Les attaquants atteignent le code vulnérable via GET /users/ sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/nhost/nhost. Surface d'attaque : GET /users/ / GET /api/v4/user / profile.EmailVerified / verified.
Gravité : Critique (CVSS 9.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 0.0.0-20260417112436-ec8dab3f2cf4.
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 /users/ (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/nhost/nhost.
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 'github.com/nhost/nhost' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/nhost/nhostを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'GET /users/' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /users/への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade github.com/nhost/nhost to 0.0.0-20260417112436-ec8dab3f2cf4ステージング環境で 0.0.0-20260417112436-ec8dab3f2cf4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against GET /users/ on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com