ADVISORIES

PyPA Advisory Database

PYSEC-2026-2043

Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain

Details

The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.

Affected packages

EcosystemPackageAffected versions
PyPIwerkzeug
All versions before 3.0.3 (fixed in 3.0.3)

References