jupyter / security

BSD 3-Clause "New" or "Revised" License
18 stars 7 forks source link

Notebook validation and security concerns #39

Open Carreau opened 2 years ago

Carreau commented 2 years ago

So I'm moving a generic bug issue across the Jupyter projects to the security workgroup. It's not yet a security issue, but the practices are recent modification are raising concern.

Quick summary:

Once validate started to do some mutation and fixing, it has proliferated, and what used to be a check is now not only not a check anymore, but creates unintended side-effect in notebook models.

SO I would appreciate help in pushing for a new cleaner API in nbformat, making sure validate(), does not mutate anything introducing likely an explicit normalized() (returning a copy), utilities, and updating downstream projects.

See https://github.com/jupyter/nbformat/pull/282