Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

False negatives of `py/flask-debug`

Open
#21,616 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
flask, python
Domain
security

Research direction

Start by locating the py/flask-debug query and reproducing the two examples in the issue. Compare the query's behavior with both configuration-based and argument-based debug activation; done means these common Flask patterns are detected without regressing existing cases.

Written by the indexing model from the issue text.

Description

py/flask-debug misses some common ways to enable debug mode in Flask.

For example:

app = Flask(__name__)
app.config['DEBUG'] = True  # Enables debug mode
app.run()  

---
class Settings:
    DEBUG = True

settings = Settings()
app.run(debug=settings.DEBUG) 
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 16h
Merged PRs (30d)
143

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql

All issues in github/codeql

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.