CVE-2021-41134Jupyter Nbdime
Media 5.4
Seguir: esta CVE · Jupyter · Jupyter Nbdime Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probabilidad de explotación en 30 días · percentil 49
- Requiere autenticación
- Sí
- Publicada
- 3 nov 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Qué pasa
nbdime provides tools for diffing and merging of Jupyter Notebooks. In affected versions a stored cross-site scripting (XSS) issue exists within the Jupyter-owned nbdime project. It appears that when reading the file name and path from disk, the extension does not sanitize the string it constructs before returning it to be displayed. The diffNotebookCheckpoint function within nbdime causes this issue. When attempting to display the name of the local notebook (diffNotebookCheckpoint), nbdime appears to simply append .ipynb to the name of the input file. The NbdimeWidget is then created, and the base string is passed through to the request API function. From there, the frontend simply renders the HTML tag and anything along with it. Users are advised to patch to the most recent version of the affected product.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Nbdime.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | nbdime |
< 1.1.1 |
1.1.1 |
pip install "nbdime>=1.1.1" |
| PyPI | nbdime |
≥ 2.0.0 < 2.1.1 |
2.1.1 |
pip install "nbdime>=2.1.1" |
| PyPI | nbdime |
≥ 3.0.0 < 3.1.1 |
3.1.1 |
pip install "nbdime>=3.1.1" |
| PyPI | nbdime |
< 1.1.1 |
1.1.1 |
pip install "nbdime>=1.1.1" |
| PyPI | nbdime |
≥ 2.0.0 < 2.1.1 |
2.1.1 |
pip install "nbdime>=2.1.1" |
| PyPI | nbdime |
≥ 3.0.0 < 3.1.1 |
3.1.1 |
pip install "nbdime>=3.1.1" |
| npm | nbdime |
< 5.0.2 |
5.0.2 |
npm install nbdime@5.0.2 |
| npm | nbdime |
≥ 6.0.0 < 6.1.2 |
6.1.2 |
npm install nbdime@6.1.2 |
| npm | nbdime-jupyterlab |
< 1.0.1 |
1.0.1 |
npm install nbdime-jupyterlab@1.0.1 |
| npm | nbdime-jupyterlab |
≥ 2.0.0 < 2.1.1 |
2.1.1 |
npm install nbdime-jupyterlab@2.1.1 |
Según OSV / GitHub Advisories (GHSA-p6rw-44q7-3fw4, PYSEC-2021-428). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| jupyter | nbdime | ≥ 1.0.0 < 1.1.1 |
| jupyter | nbdime | ≥ 2.0.0 < 2.1.1 |
| jupyter | nbdime | ≥ 3.0.0 ≤ 3.1.1 |
| jupyter | nbdime | ≥ 5.0.0 < 5.0.2 |
| jupyter | nbdime | ≥ 6.0.0 < 6.1.2 |
| jupyter | nbdime-jupyterlab | ≥ 1.0.0 < 1.0.1 |
| jupyter | nbdime-jupyterlab | ≥ 2.0.0 < 2.1.1 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory