Inefficient Regular Expression Complexity Affecting jupyter-notebook package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2204-JUPYTERNOTEBOOK-3011113
  • published7 Apr 2025
  • disclosed30 Aug 2022

Introduced: 30 Aug 2022

CVE-2022-25887  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:22.04 jupyter-notebook.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jupyter-notebook package and not the jupyter-notebook package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.

CVSS Base Scores

version 3.1