Inefficient Regular Expression Complexity Affecting jupyter-notebook package, versions <6.4.12-2.2ubuntu1+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.44% (72nd 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 IDSNYK-UBUNTU2404-JUPYTERNOTEBOOK-6704266
  • 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?

Upgrade Ubuntu:24.04 jupyter-notebook to version 6.4.12-2.2ubuntu1+esm1 or higher.

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:24.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