CVE-2021-32862: nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths
CVE-2021-32862 · Severity: low · CVSS 3.1 · Published 2022-08-18
The GitHub Security Lab discovered sixteen ways to exploit a cross-site scripting vulnerability in nbconvert. When using nbconvert to generate an HTML version of a user-controllable notebook, it is possible to inject arbitrary HTML which may lead to cross-site scripting (XSS) vulnerabilities if these HTML notebooks are served by a web server (eg: nbviewer).
Yes. nbconvert (PyPI): upgrade to 6.3.0a0, 6.5.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-32862?
Check whether you run nbconvert (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
nbconvert (PyPI): upgrade to 6.3.0a0, 6.5.1 or later