debug: true on a non-loopback bind disables admin authentication and exposes the Werkzeug debugger
Description
Correction, 2026-08-26: an earlier version of this advisory said this was fixed in 2.8.1. That was wrong — the fix was not included in that release, and 2.8.1 is affected. It is fixed in 2.8.2. If you upgraded to 2.8.1 on the strength of this advisory, upgrade again.
debug: true disables admin API key validation. This is intentional and documented as a development-only setting.
In releases through 2.8.1 the surrounding defaults made it dangerous to leave on by accident. The default bind address is 0.0.0.0; the admin dashboard included the real admin API key in its rendered HTML even when the key check had been bypassed; and the built-in server passed the debug flag to Flask, exposing the Werkzeug interactive debugger on whatever interface was bound.
An operator who enabled debug on a reachable host therefore exposed the admin dashboard and admin API without authentication, disclosed the admin API key, and exposed an interactive debugger.
2.8.2 restricts the debug admin bypass to loopback binds, refuses to start with debug enabled on a non-loopback interface unless POTATO_ALLOW_REMOTE_DEBUG=1 is set, removes the admin key from the template context, and never enables the Werkzeug debugger on a non-loopback bind. Deployment preflight already rejected debug for public deployments.
Affected: 2.8.1 and earlier, only with debug: true and a non-loopback bind. Fixed in: 2.8.2.
Workaround for anyone who cannot upgrade: do not set debug: true on a host reachable from anywhere but localhost.