Skip to content

flask - #25

Merged
walnutpy merged 2 commits into
mainfrom
feat/test
Feb 18, 2026
Merged

flask#25
walnutpy merged 2 commits into
mainfrom
feat/test

Conversation

@walnutpy

Copy link
Copy Markdown
Owner

No description provided.

Comment thread app.py

# ---------------------------------------------------------------------
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)

Check warning

Code scanning / Semgrep OSS

Semgrep Finding: python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host Warning

Running flask app with host 0.0.0.0 could expose the server publicly.
Comment thread app.py

# ---------------------------------------------------------------------
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)

Check warning

Code scanning / Semgrep OSS

Semgrep Finding: python.flask.security.audit.debug-enabled.debug-enabled Warning

Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables.
@walnutpy
walnutpy merged commit 8884f49 into main Feb 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants