XSS (Cross-Site Scripting) dans jupyterlab (CVE-2026-102831)
Résumé
XSS dans jupyterlab (CVE-2026-102831). Des informations confidentielles peuvent être exposées. Exploitable via metadata.trusted. Atténuation : mise à jour vers 4.5.11 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Description
JupyterLab 4.5.0 enabled copying and pasing cells through the system clipboard. The paste path parses clipboard text as cell JSON and inserts the cells without clearing metadata.trusted, so a payload can declare its own output as trusted. JupyterLab does not sanitize a trusted output and evaluates the `` elements it contains, so pasting the cell runs attacker's JavaScript in the JupyterLab origin. The same payload with "trusted": false is sanitized.
[
{
"cell_type": "code",
"execution_count": null,
"source": "",
"metadata": { "trusted": true },
"outputs": [
{
"output_type": "display_data",
"metadata": {},
"data": { "text/html": "/* runs on paste */" }
}
]
}
]
Users are affected if all of the following are true:
- they run JupyterLab 4.5.0 through 4.6.3, or an application that bundles it such as Notebook 7.5+;
- if running 4.5.2 or newer,
useSystemClipboardForCellsis enabled - it is off by default in 4.5.2+, and always enabled on 4.5.0 and 4.5.1 with no opt-out - they run a Paste Cells command (e.g. from context menu, command palette, shortcut) while attacker-controlled text is in the clipboard; and
pasteCodeCellsWithoutOutputis off, the default, so the pasted cell keeps its outputs
Impact
The script runs in the JupyterLab page, in the same origin and session as the authenticated user, so it can call the Jupyter Server REST API as that user: read and write any file…
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-102831 a été découverte dans jupyterlab.
Des attaquants peuvent cibler un point d'entrée spécifique comme metadata.trusted à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 8.1/10.
Action : mettez à jour jupyterlab vers 4.5.11 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « jupyterlab CVE-2026-102831 » sur le site de l'éditeur.
CVE-2026-102831 (jupyterlab) — CWE-79 / CVSS v3 8.1
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : metadata.trusted / useSystemClipboardForCells / pasteCodeCellsWithoutOutput / jupyterlab
Correctif : 4.5.11 — 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 XSS (CWE-79) affecte jupyterlab. Les attaquants atteignent le code vulnérable via metadata.trusted sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de jupyterlab. Surface d'attaque : metadata.trusted / useSystemClipboardForCells / pasteCodeCellsWithoutOutput / jupyterlab.
Gravité : Élevée (CVSS 8.1/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 4.5.11.
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 des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
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' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
jupyterlabを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade jupyterlab to 4.5.11ステージング環境で 4.5.11 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com