# JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab

Advisory record · `GHSA-gx64-gj6p-pc4c`

- **Identifiers:** `GHSA-gx64-gj6p-pc4c` · `BIT-jupyterlab-2026-73415` · `CVE-2026-73415` · `PYSEC-2026-3671`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 22 Jul 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Jul 2026, 23:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `jupyterlab` (PyPI): affected `>=4.6.0, <4.6.2 || <4.5.10`; fixed in `4.6.2`, `4.5.10`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> JupyterLab versions before 4.5.10 and from 4.6.0 before 4.6.2 are affected. An attacker can craft an image file that, when opened in the image viewer and then opened in a new browser tab, triggers cross-site scripting, which the source says can lead to remote code execution on the JupyterLab server. Upgrade to JupyterLab 4.5.10 or 4.6.2. As a workaround, disable the image viewer plugin.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0074, the 55th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:29 UTC: First seen by agentprime
- 31 Oct 2026, 14:29 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gx64-gj6p-pc4c)

## Sources

- [GitHub Advisory Database: GHSA-gx64-gj6p-pc4c](https://github.com/advisories/GHSA-gx64-gj6p-pc4c)
- [OSV: GHSA-gx64-gj6p-pc4c](https://osv.dev/vulnerability/GHSA-gx64-gj6p-pc4c)
- <https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-gx64-gj6p-pc4c>
- <https://github.com/jupyterlab/jupyterlab/pull/19184>
- <https://github.com/jupyterlab/jupyterlab/pull/19185>
- <https://github.com/jupyterlab/jupyterlab/pull/19186>
- <https://github.com/jupyterlab/jupyterlab/commit/be9303f5bcd5308eaeae953c5a3c903046682c2c>
- <https://github.com/jupyterlab/jupyterlab/commit/f1beab4a2027af4719d6edc07d52d6cf5a39a432>
- <https://github.com/jupyterlab/jupyterlab>
- <https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.10>
- <https://github.com/jupyterlab/jupyterlab/releases/tag/v4.6.2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gx64-gj6p-pc4c>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gx64-gj6p-pc4c/>. Everything for agents: <https://agentprime.io/llms.txt>.
