please check this https://github.com/pallets/flask/issues/4494 it may be be good to add these to requirement.txt Jinja2==3.0.3 werkzeug==2.0.2