Description
In Jupyter Notebook before 5.4.1, a maliciously forged notebook file can bypass sanitization to execute JavaScript in the notebook context. Specifically, invalid HTML is 'fixed' by jQuery after sanitization, making it dangerous.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ipython | 5.1.0-2 | — |
| Debian 14 | jupyter-notebook | 5.4.1-1 | — |
| Debian 13 | ipython | 5.1.0-2 | — |
| Debian 13 | jupyter-notebook | 5.4.1-1 | — |
| Debian 12 | ipython | 5.1.0-2 | — |
| Debian 12 | jupyter-notebook | 5.4.1-1 | — |
| Debian 9 | jupyter-notebook | 4.2.3-4+deb9u1 | DLA-2432-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | ipython | 2.4.1-1ubuntu0.1~esm2 | USN-4855-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | notebook | < 5.4.1 | 5.4.1 | GHSA-6cwv-x26c-w2q4 |
Advisories 2
- USN-4855-1 ipython vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2432-1 jupyter-notebook - security update Debian Security (DSA / DLA) · Mar 9, 2026