Werkzeug@2.3.5 vulnerabilities

The comprehensive WSGI web application library.

Direct Vulnerabilities

Known vulnerabilities in the Werkzeug 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
  • H
Remote Code Execution (RCE)

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to insufficient hostname checks and the use of relative paths to resolve requests. When the debugger is enabled, an attacker can convince a user to enter their own PIN to interact with a domain and subdomain they control, and thereby cause malicious code to be executed.

The demonstrated attack vector requires a number of conditions that render this attack very difficult to achieve, especially if the victim application is running in the recommended configuration of not having the debugger enabled in production.

How to fix Remote Code Execution (RCE)?

Upgrade werkzeug to version 3.0.3 or higher.

[,3.0.3)
  • M
Inefficient Algorithmic Complexity

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in multipart data parsing. An attacker can cause a denial of service and block worker processes from handling legitimate requests by sending crafted multipart data to an endpoint that will parse it, eventually exhausting or killing all available workers.

Exploiting this vulnerability is possible if the uploaded file starts with CR or LF and is followed by megabytes of data without these characters.

How to fix Inefficient Algorithmic Complexity?

Upgrade werkzeug to version 2.3.8, 3.0.1 or higher.

[,2.3.8) [3.0.0,3.0.1)