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).
https://lists.debian.org/debian-lts-announce/2023/06/msg00003.html
https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm
https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq