PYSEC-2018-57: High severity jupyter notebook vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Jupyter Notebookto a version that resolves this vulnerability.Fixed in 5.4.1
Event History
Frequently Asked Questions
What does an attacker need to do to exploit this issue?
The attacker needs to provide a maliciously forged notebook file and convince a user to open or otherwise render it in Jupyter Notebook. The attack relies on invalid HTML that is altered by jQuery after the notebook's sanitization step.
Are users affected without interacting with an untrusted notebook?
The supplied information indicates user interaction is required. Exposure arises when a user handles a maliciously forged notebook file.
What versions are affected?
Jupyter Notebook versions before 5.4.1 are affected. Upgrading to 5.4.1 or later addresses the affected version range stated here.