{"id":"CVE-2026-54527","aliases":["GHSA-f962-v9hr-pfg5","PYSEC-2026-2540","PYSEC-2026-2541"],"summary":"JupyterLab Git: Stored XSS leading to RCE","published_at":"2026-06-19T19:36:04Z","modified_at":"2026-11-05T17:24:47Z","products":[],"rating":{"severity":"critical","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","attack_path":"internet_authenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005289999768137932,"percentile":0.45517998933792114,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"details":"JupyterLab Git is a Git extension for JupyterLab. From 0.30.0b3 before 0.54.0, the PlainTextDiff.ts createHeader() method passes Git filenames directly to innerHTML when rendering renamed files in commit history, allowing a crafted filename to execute JavaScript when a victim views the rename diff in the Git History tab. This issue is fixed in version 0.54.0.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"jupyterlab/jupyterlab-git","versions":[">= 0.30.0b3, < 0.54.0"],"provider":"cvelistv5","source":"CVE-2026-54527","relation":"self"},{"ecosystem":"NVD","package":"jupyter:jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.1"},{"fixed":"0.54.0"}]}],"versions":["0.30.0"],"fixed":["0.54.0"],"provider":"nvd","source":"CVE-2026-54527","relation":"self"},{"ecosystem":"PyPI","package":"jupyterlab-git","purl":"pkg:pypi/jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.30.0","0.30.0b3","0.30.1","0.31.0","0.31.0a0","0.32.0","0.32.1","0.32.2","0.32.3","0.32.4","0.33.0","0.34.0","0.34.1","0.34.2","0.35.0","0.36.0","0.37.0","0.37.1","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.40.0","0.40.1","0.41.0","0.42.0","0.42.0rc0","0.43.0","0.44.0","0.50.0","0.50.0a0","0.50.0a1","0.50.0a2","0.50.0rc0","0.50.1","0.50.2","0.51.0","0.51.1","0.51.2","0.51.3","0.51.4","0.52.0","0.53.0","0.53.0a0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"},{"ecosystem":"PyPI","package":"jupyterlab-git","purl":"pkg:pypi/jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.30.0","0.30.0b3","0.30.1","0.31.0","0.31.0a0","0.32.0","0.32.1","0.32.2","0.32.3","0.32.4","0.33.0","0.34.0","0.34.1","0.34.2","0.35.0","0.36.0","0.37.0","0.37.1","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.40.0","0.40.1","0.41.0","0.42.0","0.42.0rc0","0.43.0","0.44.0","0.50.0","0.50.0a0","0.50.0a1","0.50.0a2","0.50.0rc0","0.50.1","0.50.2","0.51.0","0.51.1","0.51.2","0.51.3","0.51.4","0.52.0","0.53.0","0.53.0a0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"PYSEC-2026-2540","relation":"self"},{"ecosystem":"PyPI","package":"jupyterlab-git-core","purl":"pkg:pypi/jupyterlab-git-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.53.0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"},{"ecosystem":"PyPI","package":"jupyterlab-git-core","purl":"pkg:pypi/jupyterlab-git-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.53.0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"PYSEC-2026-2541","relation":"self"},{"ecosystem":"npm","package":"@jupyterlab/git","purl":"pkg:npm/%40jupyterlab/git","ranges":[{"type":"SEMVER","events":[{"introduced":"0.30.0-beta.3"},{"fixed":"0.54.0"}]}],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-th06-cpu-torch210-py312-rhel9","rhoai/odh-th06-cpu-torch291-py312-rhel9","rhoai/odh-th06-cuda130-torch210-py312-rhel9","rhoai/odh-th06-cuda130-torch291-py312-rhel9","rhoai/odh-th06-rocm64-torch291-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":10,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-54527"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-th-torch-cpu-py312-rhel9","rhoai/odh-th-torch-cuda-py312-rhel9","rhoai/odh-th-torch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-54527"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-54527","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-54527","license":"CC-BY-4.0","published_at":"2026-07-08T21:03:01.698Z","modified_at":"2026-07-09T14:16:09.781Z","summary":"JupyterLab Git: Stored XSS leading to RCE","details":"JupyterLab Git is a Git extension for JupyterLab. From 0.30.0b3 before 0.54.0, the PlainTextDiff.ts createHeader() method passes Git filenames directly to innerHTML when rendering renamed files in commit history, allowing a crafted filename to execute JavaScript when a victim views the rename diff in the Git History tab. This issue is fixed in version 0.54.0.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"CVE-2026-54527"}],"affected":[{"ecosystem":"CVE","package":"jupyterlab/jupyterlab-git","versions":[">= 0.30.0b3, < 0.54.0"],"provider":"cvelistv5","source":"CVE-2026-54527","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/commit/c6d37b88f36aa59aee317930b95e427fb9d6b09b"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/releases/tag/v0.54.0"}]},{"provider":"nvd","source_id":"CVE-2026-54527","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527","severity":[],"affected":[{"ecosystem":"NVD","package":"jupyter:jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.1"},{"fixed":"0.54.0"}]}],"versions":["0.30.0"],"fixed":["0.54.0"],"provider":"nvd","source":"CVE-2026-54527","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-f962-v9hr-pfg5","relation":"self","url":"https://osv.dev/vulnerability/GHSA-f962-v9hr-pfg5","license":"CC-BY-4.0","published_at":"2026-06-19T19:36:04Z","modified_at":"2026-09-04T21:30:06.667307Z","summary":"jupyterlab-git extension: Stored XSS leading to RCE","details":"Overview\n\nAmazon Web Services (AWS) Security has identified a stored cross-site scripting (XSS) issue in the jupyterlab-git JupyterLab extension that can lead to remote code execution (RCE). The issue exists in the PlainTextDiff.ts component, where the createHeader() method passes Git filenames directly to innerHTML without sanitization when rendering diffs for renamed files in commit history. This allows an adversary to craft a filename containing arbitrary HTML/JavaScript that executes when another user views the rename diff in the Git History tab.\n\nThe issue can be leveraged through the rename history view in the JupyterLab Git panel. An adversary creates a file with a crafted filename containing a JavaScript payload (e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py), renames the file in a subsequent commit, and pushes to a shared repository. When a victim clones the repository, navigates to the Git History tab, clicks the rename commit, and then clicks the renamed file to view the diff, the unsanitized filename renders via innerHTML, executing arbitrary JavaScript in the victim's browser session. The injected JavaScript reads the xsrf cookie, opens a JupyterLab terminal via POST /api/terminals, connects via WebSocket, and executes arbitrary shell commands — achieving full RCE. An adversary can leverage this to exfiltrate secrets or credentials from the victim's environment.\n\n\n\nScope of impact\n\nWe discovered this issue during internal security testing. The issue is present in the default configuration of JupyterLab when the jupyterlab-git extension is installed.\n\nThe attack requires:\n\n- The adversary to have commit access to a Git repository that the victim has cloned\n\n- The victim to navigate to the Git History tab, click the rename commit, and click the renamed file to view the diff\n\n\n\nThe issue could allow an actor who has access to a shared Git repository to execute arbitrary JavaScript in another user's JupyterLab environment by committing a file with a crafted filename, potentially leading to remote code execution with access to user code, data, environment variables, and credentials.\n\n\n\nProof of concept\n\nThe issue exists in the createHeader() method where filenames from rename history are passed directly to innerHTML without sanitization:\n\n[1] https://github.com/jupyterlab/jupyterlab-git/blob/main/src/components/diff/PlainTextDiff.ts#L214\n\n\n\nAttack flow:\n\n1. An adversary creates a file with a crafted filename containing a JavaScript payload, e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py\n\n2. The adversary renames the file in a subsequent commit and pushes both commits to a shared Git repository\n\n3. The victim clones or pulls the repository and navigates to the Git History tab in JupyterLab\n\n4. The victim clicks the rename commit, then clicks the renamed file to view the diff\n\n5. The createHeader() method constructs a diff header using string concatenation with the unsanitized filename and assigns the result to innerHTML\n\n6. The injected JavaScript executes in the victim's browser session, reads the _xsrf cookie, sends a POST request to /api/terminals to open a JupyterLab terminal, connects via WebSocket, and executes arbitrary shell commands\n\n\n\nProof-of-concept mitigation\n\nThe issue can be mitigated by replacing innerHTML with textContent for filename rendering in the createHeader() method of PlainTextDiff.ts. Alternatively, proper HTML sanitization (escaping <, >, &, \", ') can be applied before inserting user-controlled filenames into the DOM.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GHSA-f962-v9hr-pfg5"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"GHSA-f962-v9hr-pfg5"}],"affected":[{"ecosystem":"PyPI","package":"jupyterlab-git","purl":"pkg:pypi/jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.30.0","0.30.0b3","0.30.1","0.31.0","0.31.0a0","0.32.0","0.32.1","0.32.2","0.32.3","0.32.4","0.33.0","0.34.0","0.34.1","0.34.2","0.35.0","0.36.0","0.37.0","0.37.1","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.40.0","0.40.1","0.41.0","0.42.0","0.42.0rc0","0.43.0","0.44.0","0.50.0","0.50.0a0","0.50.0a1","0.50.0a2","0.50.0rc0","0.50.1","0.50.2","0.51.0","0.51.1","0.51.2","0.51.3","0.51.4","0.52.0","0.53.0","0.53.0a0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"},{"ecosystem":"PyPI","package":"jupyterlab-git-core","purl":"pkg:pypi/jupyterlab-git-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.53.0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"},{"ecosystem":"npm","package":"@jupyterlab/git","purl":"pkg:npm/%40jupyterlab/git","ranges":[{"type":"SEMVER","events":[{"introduced":"0.30.0-beta.3"},{"fixed":"0.54.0"}]}],"fixed":["0.54.0"],"provider":"osv","source":"GHSA-f962-v9hr-pfg5","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/commit/c6d37b88f36aa59aee317930b95e427fb9d6b09b"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f962-v9hr-pfg5"},{"type":"PACKAGE","url":"https://github.com/jupyterlab/jupyterlab-git"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/releases/tag/v0.54.0"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab-git-core/PYSEC-2026-2541.yaml"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab-git/PYSEC-2026-2540.yaml"},{"type":"WEB","url":"https://pypi.org/project/jupyterlab-git"},{"type":"WEB","url":"https://pypi.org/project/jupyterlab-git-core"}]},{"provider":"osv","source_id":"PYSEC-2026-2540","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2540","license":"CC-BY-4.0","published_at":"2026-07-13T15:46:21.629746Z","modified_at":"2026-07-13T16:42:30.80761Z","summary":"jupyterlab-git extension: Stored XSS leading to RCE","details":"Overview\n\nAmazon Web Services (AWS) Security has identified a stored cross-site scripting (XSS) issue in the jupyterlab-git JupyterLab extension that can lead to remote code execution (RCE). The issue exists in the PlainTextDiff.ts component, where the createHeader() method passes Git filenames directly to innerHTML without sanitization when rendering diffs for renamed files in commit history. This allows an adversary to craft a filename containing arbitrary HTML/JavaScript that executes when another user views the rename diff in the Git History tab.\n\nThe issue can be leveraged through the rename history view in the JupyterLab Git panel. An adversary creates a file with a crafted filename containing a JavaScript payload (e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py), renames the file in a subsequent commit, and pushes to a shared repository. When a victim clones the repository, navigates to the Git History tab, clicks the rename commit, and then clicks the renamed file to view the diff, the unsanitized filename renders via innerHTML, executing arbitrary JavaScript in the victim's browser session. The injected JavaScript reads the xsrf cookie, opens a JupyterLab terminal via POST /api/terminals, connects via WebSocket, and executes arbitrary shell commands — achieving full RCE. An adversary can leverage this to exfiltrate secrets or credentials from the victim's environment.\n\n\n\nScope of impact\n\nWe discovered this issue during internal security testing. The issue is present in the default configuration of JupyterLab when the jupyterlab-git extension is installed.\n\nThe attack requires:\n\n- The adversary to have commit access to a Git repository that the victim has cloned\n\n- The victim to navigate to the Git History tab, click the rename commit, and click the renamed file to view the diff\n\n\n\nThe issue could allow an actor who has access to a shared Git repository to execute arbitrary JavaScript in another user's JupyterLab environment by committing a file with a crafted filename, potentially leading to remote code execution with access to user code, data, environment variables, and credentials.\n\n\n\nProof of concept\n\nThe issue exists in the createHeader() method where filenames from rename history are passed directly to innerHTML without sanitization:\n\n[1] https://github.com/jupyterlab/jupyterlab-git/blob/main/src/components/diff/PlainTextDiff.ts#L214\n\n\n\nAttack flow:\n\n1. An adversary creates a file with a crafted filename containing a JavaScript payload, e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py\n\n2. The adversary renames the file in a subsequent commit and pushes both commits to a shared Git repository\n\n3. The victim clones or pulls the repository and navigates to the Git History tab in JupyterLab\n\n4. The victim clicks the rename commit, then clicks the renamed file to view the diff\n\n5. The createHeader() method constructs a diff header using string concatenation with the unsanitized filename and assigns the result to innerHTML\n\n6. The injected JavaScript executes in the victim's browser session, reads the _xsrf cookie, sends a POST request to /api/terminals to open a JupyterLab terminal, connects via WebSocket, and executes arbitrary shell commands\n\n\n\nProof-of-concept mitigation\n\nThe issue can be mitigated by replacing innerHTML with textContent for filename rendering in the createHeader() method of PlainTextDiff.ts. Alternatively, proper HTML sanitization (escaping <, >, &, \", ') can be applied before inserting user-controlled filenames into the DOM.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"PYSEC-2026-2540"}],"affected":[{"ecosystem":"PyPI","package":"jupyterlab-git","purl":"pkg:pypi/jupyterlab-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.30.0","0.30.0b3","0.30.1","0.31.0","0.31.0a0","0.32.0","0.32.1","0.32.2","0.32.3","0.32.4","0.33.0","0.34.0","0.34.1","0.34.2","0.35.0","0.36.0","0.37.0","0.37.1","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.40.0","0.40.1","0.41.0","0.42.0","0.42.0rc0","0.43.0","0.44.0","0.50.0","0.50.0a0","0.50.0a1","0.50.0a2","0.50.0rc0","0.50.1","0.50.2","0.51.0","0.51.1","0.51.2","0.51.3","0.51.4","0.52.0","0.53.0","0.53.0a0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"PYSEC-2026-2540","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"},{"type":"PACKAGE","url":"https://github.com/jupyterlab/jupyterlab-git"},{"type":"PACKAGE","url":"https://pypi.org/project/jupyterlab-git"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f962-v9hr-pfg5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527"}]},{"provider":"osv","source_id":"PYSEC-2026-2541","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2541","license":"CC-BY-4.0","published_at":"2026-07-13T15:46:21.77514Z","modified_at":"2026-07-13T16:42:30.80761Z","summary":"jupyterlab-git extension: Stored XSS leading to RCE","details":"Overview\n\nAmazon Web Services (AWS) Security has identified a stored cross-site scripting (XSS) issue in the jupyterlab-git JupyterLab extension that can lead to remote code execution (RCE). The issue exists in the PlainTextDiff.ts component, where the createHeader() method passes Git filenames directly to innerHTML without sanitization when rendering diffs for renamed files in commit history. This allows an adversary to craft a filename containing arbitrary HTML/JavaScript that executes when another user views the rename diff in the Git History tab.\n\nThe issue can be leveraged through the rename history view in the JupyterLab Git panel. An adversary creates a file with a crafted filename containing a JavaScript payload (e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py), renames the file in a subsequent commit, and pushes to a shared repository. When a victim clones the repository, navigates to the Git History tab, clicks the rename commit, and then clicks the renamed file to view the diff, the unsanitized filename renders via innerHTML, executing arbitrary JavaScript in the victim's browser session. The injected JavaScript reads the xsrf cookie, opens a JupyterLab terminal via POST /api/terminals, connects via WebSocket, and executes arbitrary shell commands — achieving full RCE. An adversary can leverage this to exfiltrate secrets or credentials from the victim's environment.\n\n\n\nScope of impact\n\nWe discovered this issue during internal security testing. The issue is present in the default configuration of JupyterLab when the jupyterlab-git extension is installed.\n\nThe attack requires:\n\n- The adversary to have commit access to a Git repository that the victim has cloned\n\n- The victim to navigate to the Git History tab, click the rename commit, and click the renamed file to view the diff\n\n\n\nThe issue could allow an actor who has access to a shared Git repository to execute arbitrary JavaScript in another user's JupyterLab environment by committing a file with a crafted filename, potentially leading to remote code execution with access to user code, data, environment variables, and credentials.\n\n\n\nProof of concept\n\nThe issue exists in the createHeader() method where filenames from rename history are passed directly to innerHTML without sanitization:\n\n[1] https://github.com/jupyterlab/jupyterlab-git/blob/main/src/components/diff/PlainTextDiff.ts#L214\n\n\n\nAttack flow:\n\n1. An adversary creates a file with a crafted filename containing a JavaScript payload, e.g., <img src=x onerror=eval(atob(\"base64_payload\"))>.py\n\n2. The adversary renames the file in a subsequent commit and pushes both commits to a shared Git repository\n\n3. The victim clones or pulls the repository and navigates to the Git History tab in JupyterLab\n\n4. The victim clicks the rename commit, then clicks the renamed file to view the diff\n\n5. The createHeader() method constructs a diff header using string concatenation with the unsanitized filename and assigns the result to innerHTML\n\n6. The injected JavaScript executes in the victim's browser session, reads the _xsrf cookie, sends a POST request to /api/terminals to open a JupyterLab terminal, connects via WebSocket, and executes arbitrary shell commands\n\n\n\nProof-of-concept mitigation\n\nThe issue can be mitigated by replacing innerHTML with textContent for filename rendering in the createHeader() method of PlainTextDiff.ts. Alternatively, proper HTML sanitization (escaping <, >, &, \", ') can be applied before inserting user-controlled filenames into the DOM.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"PYSEC-2026-2541"}],"affected":[{"ecosystem":"PyPI","package":"jupyterlab-git-core","purl":"pkg:pypi/jupyterlab-git-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.30.0b3"},{"fixed":"0.54.0"}]}],"versions":["0.53.0","0.53.0a1","0.54.0a0","0.54.0a1"],"fixed":["0.54.0"],"provider":"osv","source":"PYSEC-2026-2541","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"},{"type":"PACKAGE","url":"https://github.com/jupyterlab/jupyterlab-git"},{"type":"PACKAGE","url":"https://pypi.org/project/jupyterlab-git-core"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f962-v9hr-pfg5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527"}]},{"provider":"redhat-vex","source_id":"CVE-2026-54527","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-54527","license":"CC-BY-4.0","published_at":"2026-07-08T21:03:01.698Z","modified_at":"2026-11-05T17:24:47Z","summary":"jupyterlab-git: jupyterlab-git-core: @jupyterlab/git: JupyterLab Git: Remote Code Execution via crafted Git filenames in commit history","details":"A flaw was found in JupyterLab Git, a Git extension for JupyterLab. A remote attacker with commit access to a shared Git repository can exploit a stored cross-site scripting (XSS) vulnerability (CWE-79). By crafting a malicious Git filename, an attacker can execute arbitrary JavaScript in a victim's browser session when they view the rename diff in the Git History tab, potentially leading to remote code execution (RCE).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"CVE-2026-54527"},{"type":"Red Hat","score":"Important","source":"CVE-2026-54527"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-th06-cpu-torch210-py312-rhel9","rhoai/odh-th06-cpu-torch291-py312-rhel9","rhoai/odh-th06-cuda130-torch210-py312-rhel9","rhoai/odh-th06-cuda130-torch291-py312-rhel9","rhoai/odh-th06-rocm64-torch291-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":10,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-54527"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-th-torch-cpu-py312-rhel9","rhoai/odh-th-torch-cuda-py312-rhel9","rhoai/odh-th-torch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-54527"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54527.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-54527"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2498281"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-54527"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/commit/c6d37b88f36aa59aee317930b95e427fb9d6b09b"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/releases/tag/v0.54.0"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"}]}],"references":[{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-f962-v9hr-pfg5"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/commit/c6d37b88f36aa59aee317930b95e427fb9d6b09b"},{"type":"WEB","url":"https://github.com/jupyterlab/jupyterlab-git/releases/tag/v0.54.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f962-v9hr-pfg5"},{"type":"PACKAGE","url":"https://github.com/jupyterlab/jupyterlab-git"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab-git-core/PYSEC-2026-2541.yaml"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab-git/PYSEC-2026-2540.yaml"},{"type":"WEB","url":"https://pypi.org/project/jupyterlab-git"},{"type":"WEB","url":"https://pypi.org/project/jupyterlab-git-core"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54527.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-54527"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2498281"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-54527"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-54527","url":"https://www.cve.org/CVERecord?id=CVE-2026-54527","license":"CC-BY-4.0","modified_at":"2026-07-09T14:16:09.781Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-54527","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54527","relation":"self"},{"provider":"osv","source_id":"GHSA-f962-v9hr-pfg5","url":"https://osv.dev/vulnerability/GHSA-f962-v9hr-pfg5","license":"CC-BY-4.0","modified_at":"2026-09-04T21:30:06.667307Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2540","url":"https://osv.dev/vulnerability/PYSEC-2026-2540","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:30.80761Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2541","url":"https://osv.dev/vulnerability/PYSEC-2026-2541","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:30.80761Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-54527","url":"https://access.redhat.com/security/cve/CVE-2026-54527","license":"CC-BY-4.0","modified_at":"2026-11-05T17:24:47Z","relation":"self"}]}
