PT-2018-14936 · Project Jupyter+2 · Jupyter Notebook+2
CVE-2018-19351
·
Publicado
2018-11-18
·
Atualizado
2022-09-10
CVSS v3.1
6.1
Média
| Vetor | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Jupyter Notebook versions prior to 5.7.1
Description
The issue allows for cross-site scripting (XSS) attacks via an untrusted notebook. This is because nbconvert responses are considered to have the same origin as the notebook server, enabling nbconvert endpoints to execute JavaScript with access to the server API. Specifically, in the notebook/nbconvert/handlers.py file, the NbconvertFileHandler and NbconvertPostHandler do not set a Content Security Policy, which would prevent this issue.
Recommendations
For versions prior to 5.7.1, update to version 5.7.1 or later to resolve the issue. As a temporary workaround, consider setting a Content Security Policy to restrict JavaScript execution from untrusted sources. Restrict access to nbconvert endpoints to minimize the risk of exploitation.
Correção
XSS
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Jupyter Notebook
Linuxmint
Ubuntu