Flask Debug Mode Enabled

critical Web App Scanning Plugin ID 115461

Synopsis

Flask Debug Mode Enabled

Description

Flask is a free and open-source Python web application framework which offers a debug mode which allows developers to get additional information to help troubleshooting their applications including stack traces on error pages, exposing variables defined in your Flask settings. A remote unauthenticated attacker could leverage these information to access sensitive information about current application requests and configuration.

Solution

Disable Flask debug mode in production by setting the FLASK_ENV environment variable to 'production' or by setting the debug parameter to False when creating the Flask application instance.

See Also

https://flask.palletsprojects.com/en/stable/debugging/

Plugin Details

Severity: Critical

ID: 115461

Type: Check Based

Published: 9/8/2026

Updated: 9/8/2026

Scan Template: api, basic, full, pci, scan

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS Score Source: Tenable

CVSS v4

Risk Factor: Critical

Base Score: 9.2

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

CVSS Score Source: Tenable

Reference Information