mpmath@1.2.1 vulnerabilities

Python library for arbitrary-precision floating-point arithmetic

Direct Vulnerabilities

Known vulnerabilities in the mpmath package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

mpmath is a library for arbitrary-precision floating-point arithmetic.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the sub-pattern \d*\.?\d* with quantified overlapping adjacency.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade mpmath to version 1.3.0 or higher.

[0,1.3.0)