Vulnérabilité dans jupyterlab-git (CVE-2026-54528)
Résumé
Vulnérabilité dans jupyterlab-git (CVE-2026-54528). Des informations confidentielles peuvent être exposées. Exploitable via POST /git/project/secrets/status. Atténuation : mise à jour vers 0.54.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
jupyterlab-git 0.53.0 (latest, 2026-04-30) uses fnmatch.fnmatchcase() in GitHandler.prepare() (jupyterlab_git/handlers.py:91) to enforce the admin-configured excluded_paths security control. Because fnmatchcase is unconditionally case-sensitive, an authenticated user on a case-insensitive filesystem (macOS APFS, Windows NTFS) can bypass the exclusion by varying the case of the URL path segment — e.g. requesting /git/project/Secrets/... instead of /git/project/secrets/... — gaining read access to git history, file content, and status in directories the administrator explicitly excluded.
Vulnerable Code
# jupyterlab_git/handlers.py:84-92
async def prepare(self):
"""Check if the path should be skipped"""
await ensure_async(super().prepare())
path = self.path_kwargs.get("path")
if path is not None:
excluded_paths = self.git.excluded_paths
for excluded_path in excluded_paths:
if fnmatch.fnmatchcase(path, excluded_path): # ← always case-sensitive
raise tornado.web.HTTPError(404)
Root Cause
fnmatch.fnmatchcase() is unconditionally case-sensitive regardless of the operating system. Contrast with fnmatch.fnmatch() which normalizes via os.path.normcase() on case-insensitive platforms.
fnmatch.fnmatchcase("/project/secrets", "/project/secrets") # True — blocked
fnmatch.fnmatchcase("/project/Secrets", "/project/secrets") # False — bypasses check
On mac…
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-54528 a été découverte dans jupyterlab-git.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /git/project/secrets/status à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 7.1/10.
Action : mettez à jour jupyterlab-git vers 0.54.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « jupyterlab-git CVE-2026-54528 » sur le site de l'éditeur.
CVE-2026-54528 (jupyterlab-git) — CWE-178 / CVSS v3 7.1
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : POST /git/project/secrets/status / POST /git/project/Secrets/status / POST /git/project/Secrets/content / excluded_paths
Correctif : 0.54.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-178) affecte jupyterlab-git. Les attaquants atteignent le code vulnérable via POST /git/project/secrets/status.
Consultez l'avis de l'éditeur pour les versions affectées de jupyterlab-git. Surface d'attaque : POST /git/project/secrets/status / POST /git/project/Secrets/status / POST /git/project/Secrets/content / excluded_paths.
Gravité : Élevée (CVSS 7.1/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 0.54.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 POST /git/project/secrets/status (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver jupyterlab-git.
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 'jupyterlab-git' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
jupyterlab-gitを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'POST /git/project/secrets/status' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /git/project/secrets/statusへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade jupyterlab-git to 0.54.0ステージング環境で 0.54.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against POST /git/project/secrets/status on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- patch security-advisories@github.com
- web github.com
- web github.com
- web security-advisories@github.com