PYSEC-2018-57: High severity jupyter notebook vulnerability

Published Mar 18, 2018
·
Updated

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

1 affected component
jupyter notebook<5.4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Jupyter Notebook to a version that resolves this vulnerability.

    Fixed in 5.4.1

Event History

Mar 18, 2018
CVE Published
via OSV·06:29 AM
Data Sourced
via OSV·06:29 AM
DescriptionSeverity

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203