CVE-2021-41134

Vulnérabilité élevée dans nbdime (jupyter)

CVSS 8.7 · Élevée
EPSS 0.7%
jupyter•nbdime•Versions : >= 2.0.0 , < 2.1.1 - nbdime (pip), < 5.0.2 - nbdime (npm), >= 6.0.0, < 6.1.2 - nbdime (npm), >= 3.0.0, < 3.1.1 - nbdime (pip), < 1.1.1 - nbdime (pip), >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm), < 1.0.1 - nbdime-jupyterlab (npm)

Description

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.

Gravité et risque d'exploitation

CVE-2021-41134 obtient un score CVSS de 8.7/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.70 %, ce qui la place devant 52.4 % des CVE référencées.

Que faire ?

  • Vérifiez si nbdime (versions >= 2.0.0 , < 2.1.1 - nbdime (pip), < 5.0.2 - nbdime (npm), >= 6.0.0, < 6.1.2 - nbdime (npm), >= 3.0.0, < 3.1.1 - nbdime (pip), < 1.1.1 - nbdime (pip), >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm), < 1.0.1 - nbdime-jupyterlab (npm)) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références